package com.sg.service.biz.framework.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.github.pagehelper.Page;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.base.framework.req.*;
import com.sg.dto.biz.framework.req.*;
import com.sg.dto.biz.framework.res.*;
import com.sg.service.biz.framework.BaseService;
import com.sg.service.biz.framework.MemberService;
import com.wicket.okrcomponent.integration.ConfSchemeService;
import com.wicket.okrcomponent.integration.MessageService;
import com.wicket.okrcomponent.integration.dto.*;
import com.sg.common.exception.Assert;
import com.wicket.okrframework.common.exception.BizException;
import com.wicket.okrframework.dal.po.mbg.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class UserServiceImpl
        implements com.wicket.okrframework.biz.service.UserService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MOriginalRoleMemberService mOriginalRoleMemberService;
    @Resource
    private MInductionRecordService mInductionRecordService;
    @Resource
    private MUsersUnionService mUsersUnionService;
    @Resource
    private MUsersService mUsersService;
    @Resource
    private MUserinfoService mUserinfoService;
    //@Resource
    //private MSpecMethordTableService mSpecMethordTableService;
    @Resource
    private NbUser nbUser;
    @Resource
    private MUnionAppService mUnionAppService;
    @Resource
    private MOrganizationService mOrganizationService;
    @Resource
    private MemberService memberService;
    @Resource
    private MOriginalRoleMemberInfoService mOriginalRoleMemberInfoService;
    @Resource
    private MRoleMemberService mRoleMemberService;
    @Resource
    private MSceneRoleService mSceneRoleService;
    @Resource
    private MDeptService mDeptService;
    @Resource
    private BaseService baseService;
    @Resource
    private ConfSchemeService confSchemeService;
    @Resource
    private MessageService fwCompMessageClient;
//@Resource
    //private undefinedService undefinedService;
//@Resource
    //private MCustomFields2Service mCustomFields2Service;

    /**
     * D1-查账号公共信息详情[2098]
     * gen by moon at 8/17/2022, 8:01:22 PM
     */
    @Trace(operationName = "D1-查账号公共信息详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryPublicInfoDetailRespDto queryPublicInfoDetail(QueryPublicInfoDetailReqDto reqDto) {


        OriginalRoleMember originalRoleMember_1 = null;
        InductionRecord inductionRecord_1 = null;
        Organization organization_1 = null;
//步骤0: 1-2-09查询身份人员详情 - queryBeginMemberDetail
        OriginalRoleMember originalRoleMember = null;
        QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
        queryBeginMemberDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:60785_1
        queryBeginMemberDetailReq.setIsArchive("FALSE");//sourceId:60796_1
        queryBeginMemberDetailReq.setIsInvalid("FALSE");//sourceId:60797_1
        if (reqDto != null) {
            queryBeginMemberDetailReq.setUserId(reqDto.getUserId());//sourceId:60794_1
            queryBeginMemberDetailReq.setRoleCode(reqDto.getRoleCode());//sourceId:60795_1
            queryBeginMemberDetailReq.setSpaceId(reqDto.getSpaceId());//sourceId:151557_1
        }

        /*1-2-09查询身份人员详情[174]   */

        originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq);

        originalRoleMember_1 = originalRoleMember;

//步骤1: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        if (originalRoleMember != null) {
            QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
            queryinductionRecordDetailReq.setIsMainInduction("TRUE");//sourceId:60870_1
            queryinductionRecordDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:60871_1
            if (originalRoleMember != null) {
                queryinductionRecordDetailReq.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//sourceId:60869_1
            }

            /*1-3-13查询就职记录详情[165]   */

            inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq);

            inductionRecord_1 = inductionRecord;
        }

//步骤2: 1-3-12查询组织详情 - queryOrgDetail
        Organization organization = null;
        QueryOrgDetailReq queryOrgDetailReq = new QueryOrgDetailReq();
        queryOrgDetailReq.setIsHighOrg("TRUE");//sourceId:200136_1
        queryOrgDetailReq.setIsArchive("FALSE");//sourceId:199947_1
        if (reqDto != null) {
            queryOrgDetailReq.setSpaceId(reqDto.getSpaceId());//sourceId:232993_1
        }

        /*1-3-12查询组织详情（查询最高组织ID）[201]   */
        Assert.isNull(queryOrgDetailReq.getSpaceId(), "D1-查账号公共信息详情-1-3-12查询组织详情（查询最高组织ID）-创建于空间ID不能为空", false);
        Assert.isNull(queryOrgDetailReq.getIsHighOrg(), "D1-查账号公共信息详情-1-3-12查询组织详情（查询最高组织ID）-是否最高组织不能为空", false);
        Assert.isNull(queryOrgDetailReq.getIsArchive(), "D1-查账号公共信息详情-1-3-12查询组织详情（查询最高组织ID）-是否存档不能为空", false);
        organization = mOrganizationService.queryOrgDetail(queryOrgDetailReq);

        organization_1 = organization;

        QueryPublicInfoDetailRespDto retData = new QueryPublicInfoDetailRespDto();
        if (originalRoleMember_1 != null) {
            retData.setOriginalRoleMemberId(originalRoleMember_1.getOriginalRoleMemberId());//sourceId:60878_1
        }
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//sourceId:60879_1
            retData.setInductionUnitTypeCode(inductionRecord_1.getInductionUnitTypeCode());//sourceId:60880_1
            retData.setEntityId(inductionRecord_1.getEntityId());//sourceId:60881_1
            retData.setOrganizationId(inductionRecord_1.getOrganizationId());//sourceId:60882_1
        }
        if (organization_1 != null) {
            retData.setHighestOrgID(organization_1.getOrganizationId());//sourceId:200137_1
        }


        return retData;
    }

    /**
     * D1-2新增联盟用户(公共)[1021]
     * gen by moon at 12/23/2023, 1:25:31 AM
     */
    @Trace(operationName = "D1-2新增联盟用户(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddUsersUnionRespDto addUsersUnion(AddUsersUnionReqDto reqDto) {


        //virtualUsage 1-2-09查询身份人员详情  14729
        OriginalRoleMember originalRoleMember = null;
        QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
        if (reqDto != null) {
            queryBeginMemberDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:259333_1_14729
        }

        /*1-2-09查询身份人员详情[174]   */
        Assert.isNull(queryBeginMemberDetailReq.getOriginalRoleMemberId(), "D1-2新增联盟用户(公共)-1-2-09查询身份人员详情-身份人员ID不能为空", false);
        originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq)/*vcase invoke 本地 method 方法调用;*/;
        Assert.isTrue(originalRoleMember == null || originalRoleMember.getOriginalRoleMemberId() == null, "找不到数据，系统异常", false);


//virtualUsage 1-2-03查询联盟用户详情  2217
        UsersUnion usersUnion = null;
        if (originalRoleMember != null) {
            QueryUsersUnionDetailReq queryUsersUnionDetailReq = new QueryUsersUnionDetailReq();
            if (reqDto != null) {
                queryUsersUnionDetailReq.setUnionAppObjectType(reqDto.getUnionAppObjectType());//SimpleFieldAssign//sourceId:30291_1_2217
            }
            if (originalRoleMember != null) {
                queryUsersUnionDetailReq.setUserId(originalRoleMember.getUserId());//SimpleFieldAssign//sourceId:30290_1_2217
                queryUsersUnionDetailReq.setSpaceId(originalRoleMember.getSpaceId());//SimpleFieldAssign//sourceId:30293_1_2217
                queryUsersUnionDetailReq.setAppId(originalRoleMember.getAppId());//SimpleFieldAssign//sourceId:30294_1_2217
            }

            /*1-2-03查询联盟用户详情[157]   */
            Assert.isNull(queryUsersUnionDetailReq.getUnionAppObjectType(), "D1-2新增联盟用户(公共)-1-2-03查询联盟用户详情-联盟应用对象类型不能为空", false);
            Assert.isNull(queryUsersUnionDetailReq.getUserId(), "D1-2新增联盟用户(公共)-1-2-03查询联盟用户详情-个人账号不能为空", false);
            Assert.isNull(queryUsersUnionDetailReq.getSpaceId(), "D1-2新增联盟用户(公共)-1-2-03查询联盟用户详情-创建于空间ID不能为空", false);
            Assert.isNull(queryUsersUnionDetailReq.getAppId(), "D1-2新增联盟用户(公共)-1-2-03查询联盟用户详情-创建于联盟应用ID不能为空", false);
            usersUnion = mUsersUnionService.queryUsersUnionDetail(queryUsersUnionDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((usersUnion == null)) {
            //if(1-2-03查询联盟用户详情.出参 值等于空 )  2218

            String string = null;
            if (originalRoleMember != null) {
                UsersUnion usersUnion_2 = new UsersUnion();
                if (reqDto != null) {
                    usersUnion_2.setUnionAppObjectType(reqDto.getUnionAppObjectType());//SimpleFieldAssign//sourceId:30269_1_2219
                    usersUnion_2.setUnionAppObjectId(reqDto.getUnionAppObjectId());//SimpleFieldAssign//sourceId:30268_1_2219
                    usersUnion_2.setUnionAppObjectName(reqDto.getUnionAppObjectName());//SimpleFieldAssign//sourceId:30580_1_2219
                    usersUnion_2.setOpenId(reqDto.getOpenId());
                }
                if (originalRoleMember != null) {
                    usersUnion_2.setUserId(originalRoleMember.getUserId());//SimpleFieldAssign//sourceId:202973_1_2219
                    usersUnion_2.setSpaceId(originalRoleMember.getSpaceId());//SimpleFieldAssign//sourceId:202974_1_2219
                    usersUnion_2.setAppId(originalRoleMember.getAppId());//SimpleFieldAssign//sourceId:202975_1_2219
                }

                /*1-2-03新增联盟用户[53] 先查询账号是否存在记录，不存在，新增  */
                Assert.isNull(usersUnion_2.getUnionAppObjectType(), "D1-2新增联盟用户(公共)-1-2-03新增联盟用户-联盟应用对象类型不能为空", false);
                Assert.isNull(usersUnion_2.getUnionAppObjectId(), "D1-2新增联盟用户(公共)-1-2-03新增联盟用户-联盟应用用户ID不能为空", false);
                Assert.isNull(usersUnion_2.getUnionAppObjectName(), "D1-2新增联盟用户(公共)-1-2-03新增联盟用户-联盟应用用户名不能为空", false);
                Assert.isNull(usersUnion_2.getUserId(), "D1-2新增联盟用户(公共)-1-2-03新增联盟用户-个人账号不能为空", false);
                Assert.isNull(usersUnion_2.getSpaceId(), "D1-2新增联盟用户(公共)-1-2-03新增联盟用户-创建于空间ID不能为空", false);
                Assert.isNull(usersUnion_2.getAppId(), "D1-2新增联盟用户(公共)-1-2-03新增联盟用户-创建于联盟应用ID不能为空", false);
                string = mUsersUnionService.addUsersUnion(usersUnion_2)/*vcase invoke 本地 method 方法调用;*/;


            }
//processBranchName:正常结束 ,processBranchId:13021

        } else {
            //else  13022

            boolean bOOLEAN;
            if (usersUnion != null) {
                UsersUnion usersUnion_3 = new UsersUnion();
                if (usersUnion != null) {
                    usersUnion_3.setActivateRecordId(usersUnion.getActivateRecordId());//SimpleFieldAssign//sourceId:381285_1_19656
                }
                if (reqDto != null) {
                    usersUnion_3.setUnionAppObjectName(reqDto.getUnionAppObjectName());//SimpleFieldAssign//sourceId:381290_1_19656
                    usersUnion_3.setOpenId(reqDto.getOpenId());
                }

                /*1-2-03修改联盟用户（真实姓名）[54]   */
                Assert.isNull(usersUnion_3.getActivateRecordId(), "D1-2新增联盟用户(公共)-1-2-03修改联盟用户（真实姓名）-用户联盟平台激活记录不能为空", false);
                Assert.isNull(usersUnion_3.getUnionAppObjectName(), "D1-2新增联盟用户(公共)-1-2-03修改联盟用户（真实姓名）-联盟应用用户名不能为空", false);
                bOOLEAN = mUsersUnionService.updateUsersUnion(usersUnion_3)/*vcase invoke 本地 method 方法调用;*/;


            }
//processBranchName:正常结束 ,processBranchId:19657

        }
        AddUsersUnionRespDto retData = new AddUsersUnionRespDto();


        return retData;
    }

    /**
     * D1-2修改个人账号[1035]
     * gen by moon at 8/10/2022, 3:14:06 AM
     */
    @Trace(operationName = "D1-2修改个人账号")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateUserRespDto updateUser(UpdateUserReqDto reqDto) {


        //步骤0: 1-2-01修改个人账号 - updateUser
        boolean bOOLEAN;
        Users users = new Users();
        if (reqDto != null) {
            users.setUserId(reqDto.getUserId());//sourceId:30679_1
            users.setUserName(reqDto.getUserName());//sourceId:30680_1
            users.setPassword(reqDto.getPassword());//sourceId:30681_1
            users.setEmail(reqDto.getEmail());//sourceId:30682_1
            users.setPassByEmail(reqDto.getPassByEmail());//sourceId:30683_1
            users.setPhone(reqDto.getPhone());//sourceId:30684_1
            users.setPassByPhone(reqDto.getPassByPhone());//sourceId:30685_1
            users.setIsUserInfoDone(reqDto.getIsUserInfoDone());//sourceId:30686_1
            users.setLastLoginIp(reqDto.getLastLoginIp());//sourceId:30687_1
            users.setLastLoginTime(reqDto.getLastLoginTime());//sourceId:30688_1
            users.setLastPasswordChangedTime(reqDto.getLastPasswordChangedTime());//sourceId:30689_1
            users.setLastLockoutTime(reqDto.getLastLockoutTime());//sourceId:30690_1
            users.setFailedPasswordAttemptCount(reqDto.getFailedPasswordAttemptCount());//sourceId:30691_1
            users.setFirstFailedPasswordAttempTime(reqDto.getFirstFailedPasswordAttempTime());//sourceId:30692_1
            users.setIsInvalid(reqDto.getIsInvalid());//sourceId:30693_1
            users.setInvalidType(reqDto.getInvalidType());//sourceId:30694_1
            users.setInvalidReason(reqDto.getInvalidReason());//sourceId:30695_1
            users.setInvalidTime(reqDto.getInvalidTime());//sourceId:33130_1
            users.setInviteUserId(reqDto.getInviteUserId());//sourceId:30696_1
        }

        /*1-2-01修改个人账号[46]   */
        Assert.isNull(users.getUserId(), "D1-2修改个人账号-1-2-01修改个人账号-个人账号不能为空", false);
        bOOLEAN = mUsersService.updateUser(users);


        UpdateUserRespDto retData = new UpdateUserRespDto();


        return retData;
    }

    /**
     * D1-2查询个人信息列表[420]
     * gen by moon at 9/1/2022, 7:20:35 PM
     */
    @Trace(operationName = "D1-2查询个人信息列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryPersonalInformationListRespDto queryPersonalInformationList(QueryPersonalInformationListReqDto reqDto) {


        List<Users> listUsers_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_3 = new ArrayList<>();
        List<Users> listUsers_3 = new ArrayList<>();
        Page<?> page = null;
        if ((reqDto != null && reqDto.getIdCardName() != null)) {
            //if(D1-2查询个人信息列表.真实姓名 不等于空 )  23

            List<Userinfo> listUserinfo = new ArrayList<>();
            QueryUserInfoListReq queryUserInfoListReq = new QueryUserInfoListReq();
            if (reqDto != null) {
                queryUserInfoListReq.setIdCardName(reqDto.getIdCardName());//sourceId:30387_1_26
            }

            /*1-2-02查询个人资料列表（真实姓名搜索）[1178] 1-2-02查询个人资料列表（真实姓名搜索）  */

            listUserinfo = mUserinfoService.queryUserInfoList(queryUserInfoListReq);


            List<Users> listUsers = new ArrayList<>();
            if (listUserinfo != null && listUserinfo.size() > 0) {

                // TODO: 2022/10/19 晓东，分页改造
                page = CommonFunctionHelper.startPage(reqDto.getPageNum(), reqDto.getPageSize());
                BatchQueryUserReq batchQueryUserReq = new BatchQueryUserReq();
                batchQueryUserReq.setUsersList(listUserinfo.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));//sourceId:30397_1_28

                /*1-2-01批量查个人账号[1293]   */

                listUsers = mUsersService.batchQueryUser(batchQueryUserReq);


                listUsers_1 = listUsers;
            }
            List<Userinfo> listUserinfo_2 = new ArrayList<>();
            if (listUserinfo != null && listUserinfo.size() > 0) {
                BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
                batchQueryUserinfoListReq.setUserList(listUserinfo.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));//sourceId:30381_1_29

                /*1-2-02批量查询个人资料列表[52]   */

                listUserinfo_2 = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq);


                listUserinfo_3 = listUserinfo_2;
            }
//processBranchName:正常结束 ,processBranchId:13427

        } else {
            //else  27

            List<Users> listUsers_2 = new ArrayList<>();
            QueryUserListReq queryUserListReq = new QueryUserListReq();
            if (reqDto != null) {

                // TODO: 2022/10/19 晓东，分页改造
                page = CommonFunctionHelper.startPage(reqDto.getPageNum(), reqDto.getPageSize());
                queryUserListReq.setUserName(reqDto.getUserName());//sourceId:30349_1_30
                queryUserListReq.setEmail(reqDto.getEmail());//sourceId:30350_1_30
                queryUserListReq.setPassByEmail(reqDto.getPassByEmail());//sourceId:30351_1_30
                queryUserListReq.setPhone(reqDto.getPhone());//sourceId:30352_1_30
                queryUserListReq.setPassByPhone(reqDto.getPassByPhone());//sourceId:30353_1_30
                queryUserListReq.setIsUserInfoDone(reqDto.getIsUserInfoDone());//sourceId:30364_1_30
                queryUserListReq.setLastLoginIp(reqDto.getLastLoginIp());//sourceId:30355_1_30
                queryUserListReq.setLastLoginTime(reqDto.getLastLoginTime());//sourceId:30356_1_30
                queryUserListReq.setSourceCode(reqDto.getSourceCode());//sourceId:30357_1_30
                queryUserListReq.setIsInvalid(reqDto.getIsInvalid());//sourceId:30358_1_30
                queryUserListReq.setInviteUserId(reqDto.getInviteUserId());//sourceId:30359_1_30
                queryUserListReq.setSenceId(reqDto.getSenceId());//sourceId:30365_1_30
                queryUserListReq.setSpaceId(reqDto.getSpaceId());//sourceId:30360_1_30
                queryUserListReq.setAppId(reqDto.getAppId());//sourceId:30361_1_30
            }

            /*1-2-01查询个人账号列表（非搜索）[48] 排除真实姓名搜索之外的 接口入参走这个方法  */

            listUsers_2 = mUsersService.queryUserList(queryUserListReq);


            listUsers_3 = listUsers_2;
            List<Userinfo> listUserinfo_4 = new ArrayList<>();
            if (listUsers_2 != null && listUsers_2.size() > 0) {
                BatchQueryUserinfoListReq batchQueryUserinfoListReq_1 = new BatchQueryUserinfoListReq();
                batchQueryUserinfoListReq_1.setUserList(listUsers_2.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));//sourceId:30381_1_64

                /*1-2-02批量查询个人资料列表[52]   */

                listUserinfo_4 = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq_1);


                listUserinfo_3 = listUserinfo_4;
            }
//processBranchName:正常结束 ,processBranchId:13428

        }
        QueryPersonalInformationListRespDto retData = new QueryPersonalInformationListRespDto();
        //数据集融合
        if (listUsers_1 != null && !CollectionUtil.isEmpty(listUsers_1)) {
            for (Users users : listUsers_1) {
                UserDto retElm = new UserDto();
                retElm.setUserId(users.getUserId());//sourceId:7451_2
                retElm.setUserName(users.getUserName());//sourceId:7452_2
                retElm.setPhone(users.getPhone());//sourceId:7456_2
                retElm.setPassByPhone(users.getPassByPhone());//sourceId:7457_2
                retElm.setRegTime(users.getRegTime());//sourceId:7458_2
                retElm.setLastLoginIp(users.getLastLoginIp());//sourceId:7460_2
                retElm.setLastLoginTime(users.getLastLoginTime());//sourceId:7459_2
                retElm.setDevName(users.getDevName());//sourceId:7465_2
                retElm.setSourceCode(users.getSourceCode());//sourceId:7466_2
                retElm.setIsInvalid(users.getIsInvalid());//sourceId:7473_2
                retElm.setInviteUserId(users.getInviteUserId());//sourceId:7470_2
                retElm.setSpaceId(users.getSpaceId());//sourceId:7471_2
                retElm.setAppId(users.getAppId());//sourceId:7472_2
                retData.getUserList().add(retElm);
                if (listUserinfo_3 != null) {
                    for (Userinfo userinfo : listUserinfo_3) {
                        if (userinfo.getUserId().equals(users.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//sourceId:12961_2
                            retElm.setIdCardName(userinfo.getIdCardName());//sourceId:12959_2
                            retElm.setNickName(userinfo.getNickName());//sourceId:12960_2
                            retElm.setUserIntro(userinfo.getUserIntro());//sourceId:12962_2
                            retElm.setSex(userinfo.getSex());//sourceId:12963_2
                            retElm.setBirthday(userinfo.getBirthday());//sourceId:12964_2
                            retElm.setCity(userinfo.getCity());//sourceId:12965_2
                        }
                    }
                }

            }
        }
//数据集融合
        if (listUsers_3 != null && !CollectionUtil.isEmpty(listUsers_3)) {
            for (Users users : listUsers_3) {
                UserDto retElm = new UserDto();
                retElm.setUserId(users.getUserId());//sourceId:7451_2
                retElm.setUserName(users.getUserName());//sourceId:7452_2
                retElm.setPhone(users.getPhone());//sourceId:7456_2
                retElm.setPassByPhone(users.getPassByPhone());//sourceId:7457_2
                retElm.setRegTime(users.getRegTime());//sourceId:7458_2
                retElm.setLastLoginIp(users.getLastLoginIp());//sourceId:7460_2
                retElm.setLastLoginTime(users.getLastLoginTime());//sourceId:7459_2
                retElm.setDevName(users.getDevName());//sourceId:7465_2
                retElm.setSourceCode(users.getSourceCode());//sourceId:7466_2
                retElm.setIsInvalid(users.getIsInvalid());//sourceId:7473_2
                retElm.setInviteUserId(users.getInviteUserId());//sourceId:7470_2
                retElm.setSpaceId(users.getSpaceId());//sourceId:7471_2
                retElm.setAppId(users.getAppId());//sourceId:7472_2
                retData.getUserList().add(retElm);
                if (listUserinfo_3 != null) {
                    for (Userinfo userinfo : listUserinfo_3) {
                        if (userinfo.getUserId().equals(users.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//sourceId:12961_2
                            retElm.setIdCardName(userinfo.getIdCardName());//sourceId:12959_2
                            retElm.setNickName(userinfo.getNickName());//sourceId:12960_2
                            retElm.setUserIntro(userinfo.getUserIntro());//sourceId:12962_2
                            retElm.setSex(userinfo.getSex());//sourceId:12963_2
                            retElm.setBirthday(userinfo.getBirthday());//sourceId:12964_2
                            retElm.setCity(userinfo.getCity());//sourceId:12965_2
                        }
                    }
                }

            }
        }//sourceId:20207_1


        if (page != null) {
            retData.setPageNum(page.getPageNum());
            retData.setPageSize(page.getPageSize());
            retData.setTotalNum(page.getTotal());
        }


        return retData;
    }

    /**
     * D1-2修改手机号[415]
     * gen by moon at 10/2/2022, 5:40:00 AM
     */
    @Trace(operationName = "D1-2修改手机号")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateChangePhoneRespDto updateChangePhone(UpdateChangePhoneReqDto reqDto) {


        //步骤0: 1-2-01修改个人账号 - updateUser
        boolean bOOLEAN;
        Users users = new Users();
        if (reqDto != null) {
            users.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:30142_1
            users.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:30147_1
        }

        /*1-2-01修改个人账号[46]   */
        Assert.isNull(users.getUserId(), "D1-2修改手机号-1-2-01修改个人账号-个人账号不能为空", false);
        Assert.isNull(users.getPhone(), "D1-2修改手机号-1-2-01修改个人账号-绑定手机不能为空", false);
        bOOLEAN = mUsersService.updateUser(users);


        UpdateChangePhoneRespDto retData = new UpdateChangePhoneRespDto();


        return retData;
    }

    /**
     * D1-2修改个人资料[410]
     * gen by moon at 10/2/2022, 5:20:00 AM
     */
    @Trace(operationName = "D1-2修改个人资料")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateUserInfoRespDto updateUserInfo(UpdateUserInfoReqDto reqDto) {


        //步骤0: 1-2-02修改个人资料 - updateUserInfo
        boolean bOOLEAN;
        Userinfo userinfo = new Userinfo();
        if (reqDto != null) {
            userinfo.setPersonalDataId(reqDto.getPersonalDataId());//SimpleFieldAssign//sourceId:6583_1
            userinfo.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:6585_1
            userinfo.setNickName(reqDto.getNickName());//SimpleFieldAssign//sourceId:6586_1
            userinfo.setUserFace(reqDto.getUserFace());//SimpleFieldAssign//sourceId:6587_1
            userinfo.setSex(reqDto.getSex());//SimpleFieldAssign//sourceId:6588_1
            userinfo.setBirthday(reqDto.getBirthday());//SimpleFieldAssign//sourceId:6589_1
            userinfo.setCity(reqDto.getCity());//SimpleFieldAssign//sourceId:6590_1
            userinfo.setUserIntro(reqDto.getUserIntro());//SimpleFieldAssign//sourceId:47086_1
            userinfo.setMyPwdAnswer(reqDto.getMyPwdAnswer());//SimpleFieldAssign//sourceId:203544_1
        }

        /*1-2-02修改个人资料[50]   */
        Assert.isNull(userinfo.getPersonalDataId(), "D1-2修改个人资料-1-2-02修改个人资料-个人资料记录ID不能为空", false);
        bOOLEAN = mUserinfoService.updateUserInfo(userinfo);


        UpdateUserInfoRespDto retData = new UpdateUserInfoRespDto();


        return retData;
    }

    /**
     * D1-2查询个人资料详情[408]
     * gen by moon at 8/10/2022, 3:23:11 AM
     */
    @Trace(operationName = "D1-2查询个人资料详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserInfoDetailRespDto queryUserInfoDetail(QueryUserInfoDetailReqDto reqDto) {


        Userinfo userinfo_1 = null;
//步骤0: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setPersonalDataId(reqDto.getPersonalDataId());//sourceId:51418_1
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//sourceId:6540_1
            queryUserinfoDetailReq.setIdCardName(reqDto.getIdCardName());//sourceId:26527_1
        }

        /*1-2-02查询个人资料详情[155]   */

        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq);

        userinfo_1 = userinfo;

        QueryUserInfoDetailRespDto retData = new QueryUserInfoDetailRespDto();
        if (userinfo_1 != null) {
            retData.setIdCardName(userinfo_1.getIdCardName());//sourceId:13840_1
            retData.setNickName(userinfo_1.getNickName());//sourceId:13841_1
            retData.setUserFace(userinfo_1.getUserFace());//sourceId:13842_1
            retData.setSex(userinfo_1.getSex());//sourceId:13844_1
            retData.setUserId(userinfo_1.getUserId());//sourceId:51421_1
        }


        return retData;
    }

    /**
     * D1-2查询个人账号详情[1032]
     * gen by moon at 8/10/2022, 3:13:59 AM
     */
    @Trace(operationName = "D1-2查询个人账号详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserDetailRespDto queryUserDetail(QueryUserDetailReqDto reqDto) {


        Users users_1 = null;
//步骤0: 1-2-01查询个人账号详情 - queryUserDetail
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq.setUserId(reqDto.getUserId());//sourceId:21269_1
            queryUserDetailReq.setUserName(reqDto.getUserName());//sourceId:21292_1
            queryUserDetailReq.setPassword(reqDto.getPassword());//sourceId:21299_1
            queryUserDetailReq.setPhone(reqDto.getPhone());//sourceId:21313_1
        }

        /*1-2-01查询个人账号详情[286]   */

        users = mUsersService.queryUserDetail(queryUserDetailReq);

        users_1 = users;

        QueryUserDetailRespDto retData = new QueryUserDetailRespDto();
        if (users_1 != null) {
            retData.setUserId(users_1.getUserId());//sourceId:21615_1
            retData.setFailedPasswordAttemptCount(users_1.getFailedPasswordAttemptCount());//sourceId:21616_1
            retData.setInvalidType(users_1.getInvalidType());//sourceId:21618_1
            retData.setInvalidReason(users_1.getInvalidReason());//sourceId:21619_1
            retData.setIsInvalid(users_1.getIsInvalid());//sourceId:21620_1
            retData.setUserName(users_1.getUserName());//sourceId:21621_1
            retData.setPassword(users_1.getPassword());//sourceId:21622_1
            retData.setEmail(users_1.getEmail());//sourceId:21623_1
            retData.setPassByEmail(users_1.getPassByEmail());//sourceId:21624_1
            retData.setPhone(users_1.getPhone());//sourceId:21625_1
            retData.setPassByPhone(users_1.getPassByPhone());//sourceId:21626_1
            retData.setRegTime(users_1.getRegTime());//sourceId:21627_1
            retData.setLastLoginTime(users_1.getLastLoginTime());//sourceId:21628_1
            retData.setLastLoginIp(users_1.getLastLoginIp());//sourceId:21629_1
            retData.setLastPasswordChangedTime(users_1.getLastPasswordChangedTime());//sourceId:21630_1
            retData.setLastLockoutTime(users_1.getLastLockoutTime());//sourceId:21631_1
            retData.setFirstFailedPasswordAttempTime(users_1.getFirstFailedPasswordAttempTime());//sourceId:21632_1
            retData.setDevName(users_1.getDevName());//sourceId:21633_1
            retData.setSourceCode(users_1.getSourceCode());//sourceId:21634_1
            retData.setInviteUserId(users_1.getInviteUserId());//sourceId:21635_1
            retData.setIsUserInfoDone(users_1.getIsUserInfoDone());//sourceId:21636_1
        }


        return retData;
    }

    /**
     * D1-2首次登录完善个人资料[481]
     * gen by moon at 3/1/2024, 12:29:21 PM
     */
    @Trace(operationName = "D1-2首次登录完善个人资料")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddRenewUserInfoRespDto addRenewUserInfo(AddRenewUserInfoReqDto reqDto) {


        String string_1 = null;
//virtualUsage D1-2判断用户唯一资料是否修改(公共)  15739
        JudgeJudgeUserOnlyInfoUpdateComRespDto judgeJudgeUserOnlyInfoUpdateComRespDto = null;
        JudgeJudgeUserOnlyInfoUpdateComReqDto judgeJudgeUserOnlyInfoUpdateComReqDto = new JudgeJudgeUserOnlyInfoUpdateComReqDto();
        if (reqDto != null) {
            judgeJudgeUserOnlyInfoUpdateComReqDto.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:312551_1_15739
            judgeJudgeUserOnlyInfoUpdateComReqDto.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:312552_1_15739
        }

        /*D1-2判断用户唯一资料是否修改(公共)[4394]   */

        judgeJudgeUserOnlyInfoUpdateComRespDto = memberService.judgeJudgeUserOnlyInfoUpdateCom(judgeJudgeUserOnlyInfoUpdateComReqDto)/*vcase invoke isSameApp*/;


//virtualUsage 1-2-01查询个人账号详情（查完善资料状态）  1006
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        queryUserDetailReq.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:42889_1_1006

        /*1-2-01查询个人账号详情（查完善资料状态）[286]   */
        Assert.isNull(queryUserDetailReq.getUserId(), "D1-2首次登录完善个人资料-1-2-01查询个人账号详情（查完善资料状态）-个人账号不能为空", false);
        users = mUsersService.queryUserDetail(queryUserDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage M-检测验证码是否有效（特殊方法）  1007
        //ModelCode: checkCaptchaValid
        CheckCaptchaValidRespDto checkCaptchaValidRes = null;
        CheckCaptchaValidReqDto checkCaptchaValidReq = new CheckCaptchaValidReqDto();
        if (reqDto != null) {
            checkCaptchaValidReq.setVerificationCode(reqDto.getVerificationCode());//SimpleFieldAssign//sourceId:42921_1_1007
        }

        /*M-检测验证码是否有效（特殊方法）[1421]  用于检测用户前端录入验证码是否有效 */

        checkCaptchaValidRes = nbUser.checkCaptchaValid(checkCaptchaValidReq);


//virtualUsage 1-2-02查询个人资料ID  1008
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        queryUserinfoDetailReq.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:21385_1_1008

        /*1-2-02查询个人资料ID[155] 通过缓存获取个人账号，作为入参查询个人资料记录ID，返回为空就新增个人资料；返回如果是值，就跳转直接修改个人资料。  */
        Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-2首次登录完善个人资料-1-2-02查询个人资料ID-账号不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((users != null && users.getIsUserInfoDone() != null && users.getIsUserInfoDone().equals("FALSE") && userinfo == null && reqDto != null && reqDto.getVerificationCode() == null) || (users != null && users.getIsUserInfoDone() != null && users.getIsUserInfoDone().equals("FALSE") && userinfo == null && checkCaptchaValidRes != null && checkCaptchaValidRes.getIsInvalid() != null && checkCaptchaValidRes.getIsInvalid().equals("TRUE"))) {
            //if((1-2-01查询个人账号详情（查完善资料状态）.个人资料是否完善 等于 否 and 1-2-02查询个人资料ID（判断用）.出参 值等于空  and D1-2首次登录完善个人资料.验证码 值等于空 ) or (1-2-01查询个人账号详情（查完善资料状态）.个人资料是否完善 等于 否 and 1-2-02查询个人资料ID（判断用）.出参 值等于空  and M-检测验证码是否有效（特殊方法）.是否有效 等于 是))  1009

            boolean bOOLEAN;
            if (users != null) {
                Users users_2 = new Users();
                if (users != null) {
                    users_2.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:21355_1_1010
                }
                if (reqDto != null) {
                    users_2.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:21356_1_1010
                    users_2.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:21360_1_1010
                    users_2.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:203117_1_1010
                    users_2.setPassByPhone(reqDto.getPassByPhone());//SimpleFieldAssign//sourceId:21361_1_1010
                    users_2.setIsUserInfoDone(reqDto.getIsUserInfoDone());//SimpleFieldAssign//sourceId:21372_1_1010
                }

                /*1-2-01修改个人账号[46] 根据DUBBO的手机号、用户名、手机激活状态入参字段是否有值，如果前端传值，表示需要修改个人账号信息，否则跳过直接查询是否个人资料是否存在；  */
                Assert.isNull(users_2.getUserId(), "D1-2首次登录完善个人资料-1-2-01修改个人账号-个人账号不能为空", false);
                Assert.isNull(users_2.getIsUserInfoDone(), "D1-2首次登录完善个人资料-1-2-01修改个人账号-个人资料是否完善不能为空", false);
                bOOLEAN = mUsersService.updateUser(users_2)/*vcase invoke 本地 method 方法调用;*/;


            }
            String string = null;
            if (users != null) {
                Userinfo userinfo_2 = new Userinfo();
                userinfo_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:7250_1_1011
                userinfo_2.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:7251_1_1011
                if (users != null) {
                    userinfo_2.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:7242_1_1011
                }
                if (reqDto != null) {
                    userinfo_2.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:7243_1_1011
                    userinfo_2.setUserFace(reqDto.getUserFace());//SimpleFieldAssign//sourceId:7245_1_1011
                    userinfo_2.setSex(reqDto.getSex());//SimpleFieldAssign//sourceId:7246_1_1011
                    userinfo_2.setBirthday(reqDto.getBirthday());//SimpleFieldAssign//sourceId:7247_1_1011
                    userinfo_2.setMyPwdProblem(reqDto.getMyPwdProblem());//SimpleFieldAssign//sourceId:203187_1_1011
                    userinfo_2.setMyPwdAnswer(reqDto.getMyPwdAnswer());//SimpleFieldAssign//sourceId:203188_1_1011
                }

                /*1-2-02新增个人资料[49] 根据上一步个人资料记录ID出参为空，执行此步骤，根据前端入参的头像、真实姓名、性别、出生日期生成个人资料；  */
                Assert.isNull(userinfo_2.getUserId(), "D1-2首次登录完善个人资料-1-2-02新增个人资料-账号不能为空", false);
                Assert.isNull(userinfo_2.getIdCardName(), "D1-2首次登录完善个人资料-1-2-02新增个人资料-真实姓名不能为空", false);
                Assert.isNull(userinfo_2.getUserFace(), "D1-2首次登录完善个人资料-1-2-02新增个人资料-真实头像不能为空", false);
                Assert.isNull(userinfo_2.getSpaceId(), "D1-2首次登录完善个人资料-1-2-02新增个人资料-创建于空间ID不能为空", false);
                Assert.isNull(userinfo_2.getAppId(), "D1-2首次登录完善个人资料-1-2-02新增个人资料-归属应用ID不能为空", false);
                string = mUserinfoService.addUserinfo(userinfo_2)/*vcase invoke 本地 method 方法调用;*/;


                string_1 = string;
            }
//processBranchName:正常结束 ,processBranchId:1016

        } else if ((reqDto != null && reqDto.getVerificationCode() == null && users != null && users.getIsUserInfoDone() != null && users.getIsUserInfoDone().equals("FALSE") && userinfo != null) || (checkCaptchaValidRes != null && checkCaptchaValidRes.getIsInvalid() != null && checkCaptchaValidRes.getIsInvalid().equals("TRUE") && users != null && users.getIsUserInfoDone() != null && users.getIsUserInfoDone().equals("FALSE") && userinfo != null)) {
            //elseif((D1-2首次登录完善个人资料.验证码 值等于空  and 1-2-01查询个人账号详情（查完善资料状态）.个人资料是否完善 等于 否 and 1-2-02查询个人资料ID（判断用）.出参 值不等于空 ) or (M-检测验证码是否有效（特殊方法）.是否有效 等于 是 and 1-2-01查询个人账号详情（查完善资料状态）.个人资料是否完善 等于 否 and 1-2-02查询个人资料ID（判断用）.出参 值不等于空 ))  1012

            boolean bOOLEAN_1;
            if (users != null) {
                Users users_3 = new Users();
                if (users != null) {
                    users_3.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:21355_1_1013
                }
                if (reqDto != null) {
                    users_3.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:21356_1_1013
                    users_3.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:21360_1_1013
                    users_3.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:203117_1_1013
                    users_3.setPassByPhone(reqDto.getPassByPhone());//SimpleFieldAssign//sourceId:21361_1_1013
                    users_3.setIsUserInfoDone(reqDto.getIsUserInfoDone());//SimpleFieldAssign//sourceId:21372_1_1013
                }

                /*1-2-01修改个人账号[46] 根据DUBBO的手机号、用户名、手机激活状态入参字段是否有值，如果前端传值，表示需要修改个人账号信息，否则跳过直接查询是否个人资料是否存在；  */
                Assert.isNull(users_3.getUserId(), "D1-2首次登录完善个人资料-1-2-01修改个人账号-个人账号不能为空", false);
                Assert.isNull(users_3.getIsUserInfoDone(), "D1-2首次登录完善个人资料-1-2-01修改个人账号-个人资料是否完善不能为空", false);
                bOOLEAN_1 = mUsersService.updateUser(users_3)/*vcase invoke 本地 method 方法调用;*/;


            }
            boolean bOOLEAN_2;
            if (userinfo != null) {
                Userinfo userinfo_3 = new Userinfo();
                if (userinfo != null) {
                    userinfo_3.setPersonalDataId(userinfo.getPersonalDataId());//SimpleFieldAssign//sourceId:21418_1_1014
                }
                if (reqDto != null) {
                    userinfo_3.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:21420_1_1014
                    userinfo_3.setUserFace(reqDto.getUserFace());//SimpleFieldAssign//sourceId:21422_1_1014
                    userinfo_3.setSex(reqDto.getSex());//SimpleFieldAssign//sourceId:21423_1_1014
                    userinfo_3.setBirthday(reqDto.getBirthday());//SimpleFieldAssign//sourceId:21424_1_1014
                    userinfo_3.setMyPwdProblem(reqDto.getMyPwdProblem());//SimpleFieldAssign//sourceId:203120_1_1014
                    userinfo_3.setMyPwdAnswer(reqDto.getMyPwdAnswer());//SimpleFieldAssign//sourceId:203121_1_1014
                }

                /*1-2-02修改个人资料[50] 根据第二步出参的个人资料记录ID，作为入参结合前端头像、真实姓名、性别、出生日期生成个人资料记录ID；  */
                Assert.isNull(userinfo_3.getPersonalDataId(), "D1-2首次登录完善个人资料-1-2-02修改个人资料-个人资料记录ID不能为空", false);
                Assert.isNull(userinfo_3.getIdCardName(), "D1-2首次登录完善个人资料-1-2-02修改个人资料-真实姓名不能为空", false);
                Assert.isNull(userinfo_3.getUserFace(), "D1-2首次登录完善个人资料-1-2-02修改个人资料-真实头像不能为空", false);
                bOOLEAN_2 = mUserinfoService.updateUserInfo(userinfo_3)/*vcase invoke 本地 method 方法调用;*/;


            }
//processBranchName:正常结束 ,processBranchId:1015

        } else if ((users != null && users.getIsUserInfoDone() != null && users.getIsUserInfoDone().equals("TRUE") || checkCaptchaValidRes != null && checkCaptchaValidRes.getIsInvalid() != null && checkCaptchaValidRes.getIsInvalid().equals("FALSE"))) {
            //elseif((1-2-01查询个人账号详情（查完善资料状态）.个人资料是否完善 等于 是 or M-检测验证码是否有效（特殊方法）.是否有效 等于 否))  1017

//异常结束 1020
            throw new BizException("10200018", "对不起，验证码错误或资料已经完善，不可以继续操作！", false);
        }
        AddRenewUserInfoRespDto retData = new AddRenewUserInfoRespDto();
        if (string_1 != null) {
            retData.setPersonalDataId(string_1);//SimpleFieldAssign//sourceId:30062_1
        }


        return retData;
    }

    /**
     * D1-2查询联盟用户列表[423]
     * gen by moon at 10/18/2022, 6:07:57 AM
     */
    @Trace(operationName = "D1-2查询联盟用户列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUsersUnionDetailRespDto queryUsersUnionDetail(QueryUsersUnionDetailReqDto reqDto) {


        List<UsersUnion> listUsersUnion_1 = new ArrayList<>();
        List<UnionApp> listUnionApp_1 = new ArrayList<>();
//步骤0: 1-2-03查询联盟用户列表 - queryUsersUnionList
        List<UsersUnion> listUsersUnion = new ArrayList<>();
        QueryUsersUnionListReq queryUsersUnionListReq = new QueryUsersUnionListReq();
        if (reqDto != null) {
            queryUsersUnionListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:24813_1
        }

        /*1-2-03查询联盟用户列表[56]   */
        Assert.isNull(queryUsersUnionListReq.getUserId(), "D1-2查询联盟用户列表-1-2-03查询联盟用户列表-个人账号不能为空", false);
        listUsersUnion = mUsersUnionService.queryUsersUnionList(queryUsersUnionListReq);


        listUsersUnion_1 = listUsersUnion;

//步骤1: 1-2-06批量查询联盟应用列表 - batchQueryApp
        List<UnionApp> listUnionApp = new ArrayList<>();
        if (listUsersUnion != null && !CollectionUtil.isEmpty(listUsersUnion) && listUsersUnion.size() > 0) {
            BatchQueryAppReq batchQueryAppReq = new BatchQueryAppReq();
            batchQueryAppReq.setUnionAppList(listUsersUnion.stream().map(item -> item.getUnionAppObjectType())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:381291_1

            /*1-2-06批量查询联盟应用列表[1548]   */

            listUnionApp = mUnionAppService.batchQueryApp(batchQueryAppReq);


            listUnionApp_1 = listUnionApp;
        }

        QueryUsersUnionDetailRespDto retData = new QueryUsersUnionDetailRespDto();
        //数据集融合  MoreListToOneSource
        if (listUsersUnion_1 != null && !CollectionUtil.isEmpty(listUsersUnion_1) && !CollectionUtil.isEmpty(listUsersUnion_1)) {
            for (UsersUnion usersUnion : listUsersUnion_1) {
                UsersUnionDto retElm = new UsersUnionDto();
                retElm.setActivateRecordId(usersUnion.getActivateRecordId());//SimpleFieldAssign//sourceId:9738_2
                retElm.setUserId(usersUnion.getUserId());//SimpleFieldAssign//sourceId:9739_2
                retElm.setUnionAppObjectType(usersUnion.getUnionAppObjectType());//SimpleFieldAssign//sourceId:9741_2
                retElm.setUnionAppObjectId(usersUnion.getUnionAppObjectId());//SimpleFieldAssign//sourceId:9740_2
                retElm.setUnionAppObjectName(usersUnion.getUnionAppObjectName());//SimpleFieldAssign//sourceId:13007_2
                retElm.setActivetionTime(usersUnion.getActivetionTime());//SimpleFieldAssign//sourceId:9742_2
                retData.getUsersUnionList().add(retElm);
                if (listUnionApp_1 != null && !CollectionUtil.isEmpty(listUnionApp_1)) {
                    for (UnionApp unionApp : listUnionApp_1) {
                        if (unionApp.getAppId().equals(usersUnion.getUnionAppObjectType())) {
                            retElm.setAppName(unionApp.getAppName());//SimpleFieldAssign//sourceId:108099_2
                            retElm.setAppLogo(unionApp.getAppLogo());//SimpleFieldAssign//sourceId:108100_2
                        }
                    }
                }

            }
        }//sourceId:24824_1


        return retData;
    }

    /**
     * D1-2查询个人信息详情[398]
     * gen by moon at 10/16/2022, 4:39:39 AM
     */
    @Trace(operationName = "D1-2查询个人信息详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryPersonalInformationDetailRespDto queryPersonalInformationDetail(QueryPersonalInformationDetailReqDto reqDto) {


        Users users_1 = null;
        Userinfo userinfo_1 = null;
        Userinfo userinfo_3 = null;
        UnionApp unionApp_1 = null;
//步骤0: 1-2-01查询个人账号详情 - queryUserDetail
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:24681_1
        }

        /*1-2-01查询个人账号详情[286]   */
        Assert.isNull(queryUserDetailReq.getUserId(), "D1-2查询个人信息详情-1-2-01查询个人账号详情-个人账号不能为空", false);
        users = mUsersService.queryUserDetail(queryUserDetailReq);


        users_1 = users;

//步骤1: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:24751_1
        }

        /*1-2-02查询个人资料详情[155]   */
        Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-2查询个人信息详情-1-2-02查询个人资料详情-账号不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq);


        userinfo_1 = userinfo;

//步骤2: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo_2 = null;
        if (users != null && users != null && users.getInviteUserId() != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq_1 = new QueryUserinfoDetailReq();
            if (users != null) {
                queryUserinfoDetailReq_1.setUserId(users.getInviteUserId());//SimpleFieldAssign//sourceId:30435_1
            }

            /*1-2-02查询个人资料详情（查邀请人）[155]   */
            Assert.isNull(queryUserinfoDetailReq_1.getUserId(), "D1-2查询个人信息详情-1-2-02查询个人资料详情（查邀请人）-账号不能为空", false);
            userinfo_2 = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq_1);


            userinfo_3 = userinfo_2;
        }

//步骤3: 1-2-06查询联盟应用详情 - queryAppDetail
        UnionApp unionApp = null;
        if (users != null && users != null && users.getAppId() != null) {
            QueryAppDetailReq queryAppDetailReq = new QueryAppDetailReq();
            if (users != null) {
                queryAppDetailReq.setAppId(users.getAppId());//SimpleFieldAssign//sourceId:30438_1
            }

            /*1-2-06查询联盟应用详情（查应用名称）[168]   */
            Assert.isNull(queryAppDetailReq.getAppId(), "D1-2查询个人信息详情-1-2-06查询联盟应用详情（查应用名称）-应用ID不能为空", false);
            unionApp = mUnionAppService.queryAppDetail(queryAppDetailReq);


            unionApp_1 = unionApp;
        }

        QueryPersonalInformationDetailRespDto retData = new QueryPersonalInformationDetailRespDto();
        if (userinfo_1 != null) {
            retData.setPersonalDataId(userinfo_1.getPersonalDataId());//SimpleFieldAssign//sourceId:63599_1
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:30490_1
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:30488_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:30489_1
            retData.setUserIntro(userinfo_1.getUserIntro());//SimpleFieldAssign//sourceId:30491_1
            retData.setSex(userinfo_1.getSex());//SimpleFieldAssign//sourceId:30492_1
            retData.setBirthday(userinfo_1.getBirthday());//SimpleFieldAssign//sourceId:30493_1
            retData.setCity(userinfo_1.getCity());//SimpleFieldAssign//sourceId:30494_1
        }
        if (users_1 != null) {
            retData.setUserId(users_1.getUserId());//SimpleFieldAssign//sourceId:30467_1
            retData.setUserName(users_1.getUserName());//SimpleFieldAssign//sourceId:30468_1
            retData.setEmail(users_1.getEmail());//SimpleFieldAssign//sourceId:30469_1
            retData.setPassByEmail(users_1.getPassByEmail());//SimpleFieldAssign//sourceId:30470_1
            retData.setPhone(users_1.getPhone());//SimpleFieldAssign//sourceId:30471_1
            retData.setPassByPhone(users_1.getPassByPhone());//SimpleFieldAssign//sourceId:30472_1
            retData.setIsUserInfoDone(users_1.getIsUserInfoDone());//SimpleFieldAssign//sourceId:30473_1
            retData.setRegTime(users_1.getRegTime());//SimpleFieldAssign//sourceId:30474_1
            retData.setLastLoginTime(users_1.getLastLoginTime());//SimpleFieldAssign//sourceId:30475_1
            retData.setLastLoginIp(users_1.getLastLoginIp());//SimpleFieldAssign//sourceId:30476_1
            retData.setLastPasswordChangedTime(users_1.getLastPasswordChangedTime());//SimpleFieldAssign//sourceId:30477_1
            retData.setLastLockoutTime(users_1.getLastLockoutTime());//SimpleFieldAssign//sourceId:30478_1
            retData.setFailedPasswordAttemptCount(users_1.getFailedPasswordAttemptCount());//SimpleFieldAssign//sourceId:30479_1
            retData.setFirstFailedPasswordAttempTime(users_1.getFirstFailedPasswordAttempTime());//SimpleFieldAssign//sourceId:30480_1
            retData.setDevName(users_1.getDevName());//SimpleFieldAssign//sourceId:30481_1
            retData.setSourceCode(users_1.getSourceCode());//SimpleFieldAssign//sourceId:30482_1
            retData.setIsInvalid(users_1.getIsInvalid());//SimpleFieldAssign//sourceId:30483_1
            retData.setInvalidType(users_1.getInvalidType());//SimpleFieldAssign//sourceId:30484_1
            retData.setInvalidReason(users_1.getInvalidReason());//SimpleFieldAssign//sourceId:30485_1
            retData.setAppId(users_1.getAppId());//SimpleFieldAssign//sourceId:30487_1
            retData.setInviteUserId(users_1.getInviteUserId());//SimpleFieldAssign//sourceId:30486_1
        }
        if (unionApp_1 != null) {
            retData.setAppName(unionApp_1.getAppName());//SimpleFieldAssign//sourceId:30495_1
        }
        if (userinfo_3 != null) {
            retData.setInviteUserIdCardName(userinfo_3.getIdCardName());//SimpleFieldAssign//sourceId:30497_1
            retData.setInviteUserFace(userinfo_3.getUserFace());//SimpleFieldAssign//sourceId:30499_1
            retData.setInviteNickName(userinfo_3.getNickName());//SimpleFieldAssign//sourceId:67319_1
        }


        return retData;
    }

    /**
     * D1-2注销个人账号[427]
     */
    @Trace(operationName = "D1-2注销个人账号")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteUserRespDto deleteUser(DeleteUserReqDto reqDto) {


        //步骤0: 1-2-01删除个人账号 - deleteFrameworkUsers
        boolean bOOLEAN;
        String string = new String();
        if (reqDto != null) {
            string = reqDto.getUserId();
            ;//sourceId:6828_1
        }

        /*1-2-01删除个人账号[47]   */
        bOOLEAN = mUsersService.deleteFrameworkUsers(string);


        DeleteUserRespDto retData = new DeleteUserRespDto();


        return retData;
    }

    /**
     * D1-查询用户登录信息（非Redis）[4160]
     * gen by moon at 12/19/2023, 6:55:12 PM
     */
    @Trace(operationName = "D1-查询用户登录信息（非Redis）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserInfoByLoginDetailRespDto queryUserInfoByLoginDetail(QueryUserInfoByLoginDetailReqDto reqDto) {


        Users users_1 = null;
        Userinfo userinfo_1 = null;
        OriginalRoleMember originalRoleMember_1 = null;
        OriginalRoleMemberInfo originalRoleMemberInfo_1 = null;
        SceneRole sceneRole_1 = null;
        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<Dept> listDept_1 = new ArrayList<>();
//步骤0: 1-2-01查询个人账号详情 - queryUserDetail
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:253467_1
        }

        /*1-2-01查询个人账号详情[286]   */
        Assert.isNull(queryUserDetailReq.getUserId(), "D1-查询用户登录信息（非Redis）-1-2-01查询个人账号详情-个人账号不能为空", false);
        users = mUsersService.queryUserDetail(queryUserDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        users_1 = users;

//步骤1: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:253507_1
        }

        /*1-2-02查询个人资料详情[155]   */
        Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-查询用户登录信息（非Redis）-1-2-02查询个人资料详情-账号不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        userinfo_1 = userinfo;

//步骤2: 1-2-09查询身份人员详情 - queryBeginMemberDetail
        OriginalRoleMember originalRoleMember = null;
        QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
        queryBeginMemberDetailReq.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:355682_1
        queryBeginMemberDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:355684_1

        /*1-2-09查询身份人员详情[174]   */
        Assert.isNull(queryBeginMemberDetailReq.getOriginalRoleMemberId(), "D1-查询用户登录信息（非Redis）-1-2-09查询身份人员详情-身份人员ID不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getSpaceId(), "D1-查询用户登录信息（非Redis）-1-2-09查询身份人员详情-创建于空间ID不能为空", false);
        originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        originalRoleMember_1 = originalRoleMember;

//步骤3: 1-2-10查询身份人员资料详情 - queryBeginMembInfoDetail
        OriginalRoleMemberInfo originalRoleMemberInfo = null;
        QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
        queryBeginMembInfoDetailReq.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:253551_1
        queryBeginMembInfoDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:253555_1

        /*1-2-10查询身份人员资料详情[116]   */
        Assert.isNull(queryBeginMembInfoDetailReq.getOriginalRoleMemberId(), "D1-查询用户登录信息（非Redis）-1-2-10查询身份人员资料详情-身份人员ID不能为空", false);
        Assert.isNull(queryBeginMembInfoDetailReq.getSpaceId(), "D1-查询用户登录信息（非Redis）-1-2-10查询身份人员资料详情-创建于空间ID不能为空", false);
        originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        originalRoleMemberInfo_1 = originalRoleMemberInfo;

//步骤4: 1-2-13查询角色人员详情 - queryRoleRelDetail
        RoleMember roleMember = null;
        QueryRoleRelDetailReq queryRoleRelDetailReq = new QueryRoleRelDetailReq();
        queryRoleRelDetailReq.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:258809_1
        queryRoleRelDetailReq.setRoleCode("ADMIN");//CUSTOM_CONVENTION//sourceId:258812_1
        queryRoleRelDetailReq.setRelationshipValid("FALSE");//sourceId:258810_1
        queryRoleRelDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:258811_1

        /*1-2-13查询角色人员详情（空间管理员）[335]   */
        Assert.isNull(queryRoleRelDetailReq.getOriginalRoleMemberId(), "D1-查询用户登录信息（非Redis）-1-2-13查询角色人员详情（空间管理员）-身份人员ID不能为空", false);
        Assert.isNull(queryRoleRelDetailReq.getRoleCode(), "D1-查询用户登录信息（非Redis）-1-2-13查询角色人员详情（空间管理员）-角色标识不能为空", false);
        Assert.isNull(queryRoleRelDetailReq.getRelationshipValid(), "D1-查询用户登录信息（非Redis）-1-2-13查询角色人员详情（空间管理员）-是否失效不能为空", false);
        Assert.isNull(queryRoleRelDetailReq.getSubjectLifeCycle(), "D1-查询用户登录信息（非Redis）-1-2-13查询角色人员详情（空间管理员）-主体生命周期不能为空", false);
        roleMember = mRoleMemberService.queryRoleRelDetail(queryRoleRelDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤5: 1-2-08查询角色详情 - queryRoleDetail
        SceneRole sceneRole = null;
        if (roleMember != null && roleMember != null && roleMember.getRoleId() != null) {
            QueryRoleDetailReq queryRoleDetailReq = new QueryRoleDetailReq();
            queryRoleDetailReq.setIsIdentity("FALSE");//sourceId:258814_1
            queryRoleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:258756_1
            if (roleMember != null) {
                queryRoleDetailReq.setRoleId(roleMember.getRoleId());//SimpleFieldAssign//sourceId:258735_1
            }

            /*1-2-08查询角色详情（空间管理员）[170]   */
            Assert.isNull(queryRoleDetailReq.getRoleId(), "D1-查询用户登录信息（非Redis）-1-2-08查询角色详情（空间管理员）-角色ID不能为空", false);
            Assert.isNull(queryRoleDetailReq.getIsIdentity(), "D1-查询用户登录信息（非Redis）-1-2-08查询角色详情（空间管理员）-是否身份角色不能为空", false);
            Assert.isNull(queryRoleDetailReq.getSubjectLifeCycle(), "D1-查询用户登录信息（非Redis）-1-2-08查询角色详情（空间管理员）-主体生命周期不能为空", false);
            sceneRole = mSceneRoleService.queryRoleDetail(queryRoleDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            sceneRole_1 = sceneRole;
        }

//步骤6: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        if (originalRoleMember != null) {
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setIsTransaction("FALSE");//sourceId:253807_1
            queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:253808_1
            queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:253809_1
            if (originalRoleMember != null) {
                queryInductionRecordListReq.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:253806_1
            }

            /*1-3-13查询就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1-查询用户登录信息（非Redis）-1-3-13查询就职记录列表-身份人员ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsTransaction(), "D1-查询用户登录信息（非Redis）-1-3-13查询就职记录列表-是否异动不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-查询用户登录信息（非Redis）-1-3-13查询就职记录列表-主体生命周期不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-查询用户登录信息（非Redis）-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


            listInductionRecord_1 = listInductionRecord;
        }

//步骤7: 1-3-09批量查询部门列表 - batchQueryDeptList
        List<Dept> listDept = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryDeptListReq batchQueryDeptListReq = new BatchQueryDeptListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryDeptListReq.setDeptList(listInductionRecord.stream().map(item -> item.getEntityId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:253998_1
            }

            /*1-3-09批量查询部门列表[1153]   */

            listDept = mDeptService.batchQueryDeptList(batchQueryDeptListReq)/*vcase invoke 本地 method 方法调用;*/;


            listDept_1 = listDept;
        }

//步骤8: 1-2-08查询角色详情 - queryRoleDetail
        SceneRole sceneRole_2 = null;
        QueryRoleDetailReq queryRoleDetailReq_1 = new QueryRoleDetailReq();


        /*1-2-08查询角色详情[170]   */

        sceneRole_2 = mSceneRoleService.queryRoleDetail(queryRoleDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;


        QueryUserInfoByLoginDetailRespDto retData = new QueryUserInfoByLoginDetailRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:88438_2
                retElm.setInductionUnitTypeCode(inductionRecord.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:88439_2
                retElm.setEntityId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:88440_2
                retElm.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:88441_2
                retElm.setOrganizationName(inductionRecord.getOrganizationName());//SimpleFieldAssign//sourceId:88442_2
                retElm.setDeptShortName(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:88443_2
                retElm.setIsMainInduction(inductionRecord.getIsMainInduction());//SimpleFieldAssign//sourceId:88444_2
                retElm.setPositionType(inductionRecord.getPositionType());//SimpleFieldAssign//sourceId:88445_2
                retElm.setPositionIdName(inductionRecord.getPositionIdName());//SimpleFieldAssign//sourceId:88446_2
                retElm.setPositionOrderNumber(inductionRecord.getPositionOrderNumber());//SimpleFieldAssign//sourceId:88447_2
                retElm.setPositionId(inductionRecord.getPositionId());//SimpleFieldAssign//sourceId:88448_2
                retElm.setDirectorInductionRecordId(inductionRecord.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:88449_2
                retElm.setPositionRoleCode(inductionRecord.getPositionRoleCode());//SimpleFieldAssign//sourceId:88450_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listDept_1 != null && !CollectionUtil.isEmpty(listDept_1)) {
                    for (Dept dept : listDept_1) {
                        if (dept.getDeptId().equals(inductionRecord.getEntityId())) {
                            retElm.setDeptBusinessIdentity(dept.getDeptBusinessIdentity());//SimpleFieldAssign//sourceId:286746_2
                            retElm.setLevelNumber(dept.getLevelNumber());//SimpleFieldAssign//sourceId:89350_2
                        }
                    }
                }

            }
        }//sourceId:254018_1
        if (users_1 != null) {
            retData.setUserId(users_1.getUserId());//SimpleFieldAssign//sourceId:254000_1
            retData.setUserName(users_1.getUserName());//SimpleFieldAssign//sourceId:254001_1
            retData.setPhone(users_1.getPhone());//SimpleFieldAssign//sourceId:254002_1
            retData.setPassByPhone(users_1.getPassByPhone());//SimpleFieldAssign//sourceId:254003_1
            retData.setIsUserInfoDone(users_1.getIsUserInfoDone());//SimpleFieldAssign//sourceId:254004_1
        }
        if (originalRoleMember_1 != null) {
            retData.setOriginalRoleMemberId(originalRoleMember_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:355685_1
            retData.setMemberId(originalRoleMember_1.getMemberId());//SimpleFieldAssign//sourceId:254014_1
        }
        if (originalRoleMemberInfo_1 != null) {
            retData.setRoleMemberCode(originalRoleMemberInfo_1.getRoleMemberCode());//SimpleFieldAssign//sourceId:254015_1
            retData.setPositionIdName(originalRoleMemberInfo_1.getPositionIdName());//SimpleFieldAssign//sourceId:254016_1
        }
        if (userinfo_1 != null) {
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:254005_1
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:254006_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:254007_1
            retData.setSex(userinfo_1.getSex());//SimpleFieldAssign//sourceId:254008_1
            retData.setBirthday(userinfo_1.getBirthday());//SimpleFieldAssign//sourceId:254009_1
            retData.setCity(userinfo_1.getCity());//SimpleFieldAssign//sourceId:254010_1
            retData.setMyPwdProblem(userinfo_1.getMyPwdProblem());//SimpleFieldAssign//sourceId:254011_1
            retData.setMyPwdAnswer(userinfo_1.getMyPwdAnswer());//SimpleFieldAssign//sourceId:254012_1
        }
        if (sceneRole_1 != null) {
            retData.setRoleId(sceneRole_1.getRoleId());//SimpleFieldAssign//sourceId:258818_1
            retData.setRoleCode(sceneRole_1.getRoleCode());//SimpleFieldAssign//sourceId:258819_1
            retData.setRoleName(sceneRole_1.getRoleName());//SimpleFieldAssign//sourceId:258820_1
        }


        return retData;
    }

    /**
     * D1-2查询个人资料详情(公共)[408]
     * gen by moon at 6/9/2024, 4:01:51 PM
     */
    @Trace(operationName = "D1-2查询个人资料详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserInfoDetailComRespDto queryUserInfoDetailCom(QueryUserInfoDetailComReqDto reqDto) {


        Userinfo userinfo_1 = null;
//步骤0: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setPersonalDataId(reqDto.getPersonalDataId());//SimpleFieldAssign//sourceId:51418_1
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:6540_1
            queryUserinfoDetailReq.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:26527_1
            queryUserinfoDetailReq.setMyPwdProblem(reqDto.getMyPwdProblem());//SimpleFieldAssign//sourceId:203598_1
            queryUserinfoDetailReq.setMyPwdAnswer(reqDto.getMyPwdAnswer());//SimpleFieldAssign//sourceId:203599_1
        }

        /*1-2-02查询个人资料详情[155]   */

        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        userinfo_1 = userinfo;

        QueryUserInfoDetailComRespDto retData = new QueryUserInfoDetailComRespDto();
        if (userinfo_1 != null) {
            retData.setPersonalDataId(userinfo_1.getPersonalDataId());//SimpleFieldAssign//sourceId:203654_1
            retData.setUserId(userinfo_1.getUserId());//SimpleFieldAssign//sourceId:51421_1
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:13842_1
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:13840_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:13841_1
            retData.setSex(userinfo_1.getSex());//SimpleFieldAssign//sourceId:13844_1
            retData.setSpaceId(userinfo_1.getSpaceId());//SimpleFieldAssign//sourceId:1097160_1
            retData.setAppId(userinfo_1.getAppId());//SimpleFieldAssign//sourceId:1097161_1
            retData.setFirstLetter(userinfo_1.getFirstLetter());//SimpleFieldAssign//sourceId:1101033_1
        }


        return retData;
    }

    /**
     * D1-查询公共信息详情(公共)[2098]
     * gen by moon at 10/18/2022, 6:07:45 AM
     */
    @Trace(operationName = "D1-查询公共信息详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryPublicInfoDetailComRespDto queryPublicInfoDetailCom(QueryPublicInfoDetailComReqDto reqDto) {


        Userinfo userinfo_1 = null;
        OriginalRoleMember originalRoleMember_1 = null;
        InductionRecord inductionRecord_1 = null;
        Organization organization_1 = null;
//步骤0: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:259354_1
        }

        /*1-2-02查询个人资料详情[155]   */
        Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-查询公共信息详情(公共)-1-2-02查询个人资料详情-账号不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq);


        userinfo_1 = userinfo;

//步骤1: 1-2-09查询身份人员详情 - queryBeginMemberDetail
        OriginalRoleMember originalRoleMember = null;
        QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
        queryBeginMemberDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:60785_1
        queryBeginMemberDetailReq.setIsArchive("FALSE");//sourceId:60796_1
        queryBeginMemberDetailReq.setIsInvalid("FALSE");//sourceId:60797_1
        if (reqDto != null) {
            queryBeginMemberDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:60794_1
            queryBeginMemberDetailReq.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:60795_1
            queryBeginMemberDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:151557_1
        }

        /*1-2-09查询身份人员详情[174]   */
        Assert.isNull(queryBeginMemberDetailReq.getUserId(), "D1-查询公共信息详情(公共)-1-2-09查询身份人员详情-账号ID不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getRoleCode(), "D1-查询公共信息详情(公共)-1-2-09查询身份人员详情-身份角色编码不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getSubjectLifeCycle(), "D1-查询公共信息详情(公共)-1-2-09查询身份人员详情-主体生命周期不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getIsArchive(), "D1-查询公共信息详情(公共)-1-2-09查询身份人员详情-是否存档不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getIsInvalid(), "D1-查询公共信息详情(公共)-1-2-09查询身份人员详情-是否失效不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getSpaceId(), "D1-查询公共信息详情(公共)-1-2-09查询身份人员详情-创建于空间ID不能为空", false);
        originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq);


        originalRoleMember_1 = originalRoleMember;

//步骤2: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        if (originalRoleMember != null) {
            QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
            queryinductionRecordDetailReq.setIsMainInduction("TRUE");//sourceId:60870_1
            queryinductionRecordDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:60871_1
            if (originalRoleMember != null) {
                queryinductionRecordDetailReq.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:60869_1
            }

            /*1-3-13查询就职记录详情[165]   */
            Assert.isNull(queryinductionRecordDetailReq.getOriginalRoleMemberId(), "D1-查询公共信息详情(公共)-1-3-13查询就职记录详情-身份人员ID不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getIsMainInduction(), "D1-查询公共信息详情(公共)-1-3-13查询就职记录详情-是否主岗不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getSubjectLifeCycle(), "D1-查询公共信息详情(公共)-1-3-13查询就职记录详情-主体生命周期不能为空", false);
            inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq);


            inductionRecord_1 = inductionRecord;
        }

//步骤3: 1-3-12查询组织详情 - queryOrgDetail
        Organization organization = null;
        QueryOrgDetailReq queryOrgDetailReq = new QueryOrgDetailReq();
        queryOrgDetailReq.setIsHighOrg("TRUE");//sourceId:200136_1
        queryOrgDetailReq.setIsArchive("FALSE");//sourceId:199947_1
        if (reqDto != null) {
            queryOrgDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:232993_1
        }

        /*1-3-12查询组织详情（查询最高组织ID）[201]   */
        Assert.isNull(queryOrgDetailReq.getIsHighOrg(), "D1-查询公共信息详情(公共)-1-3-12查询组织详情（查询最高组织ID）-是否最高组织不能为空", false);
        Assert.isNull(queryOrgDetailReq.getIsArchive(), "D1-查询公共信息详情(公共)-1-3-12查询组织详情（查询最高组织ID）-是否存档不能为空", false);
        organization = mOrganizationService.queryOrgDetail(queryOrgDetailReq);


        organization_1 = organization;

        QueryPublicInfoDetailComRespDto retData = new QueryPublicInfoDetailComRespDto();
        if (originalRoleMember_1 != null) {
            retData.setOriginalRoleMemberId(originalRoleMember_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:60878_1
        }
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//SimpleFieldAssign//sourceId:60879_1
            retData.setInductionUnitTypeCode(inductionRecord_1.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:60880_1
            retData.setEntityId(inductionRecord_1.getEntityId());//SimpleFieldAssign//sourceId:60881_1
            retData.setPositionRoleCode(inductionRecord_1.getPositionRoleCode());//SimpleFieldAssign//sourceId:355589_1
            retData.setOrganizationId(inductionRecord_1.getOrganizationId());//SimpleFieldAssign//sourceId:60882_1
        }
        if (organization_1 != null) {
            retData.setHighestOrgID(organization_1.getOrganizationId());//SimpleFieldAssign//sourceId:200137_1
        }
        if (userinfo_1 != null) {
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:259364_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:259365_1
        }


        return retData;
    }

    /**
     * D1-执行登录验证(公共)[1193]
     * gen by moon at 2/6/2024, 4:23:17 PM
     */
    @Trace(operationName = "D1-执行登录验证(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementSignInCheckComRespDto implementSignInCheckCom(ImplementSignInCheckComReqDto reqDto) {


        Users users_3 = null;
        //virtualUsage 1-2-01查询个人账号详情  2202
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:44256_1_2202
            queryUserDetailReq.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:44248_1_2202
            queryUserDetailReq.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:44244_1_2202
        }

        /*1-2-01查询个人账号详情[286]   */

        users = mUsersService.queryUserDetail(queryUserDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((users == null)) {
            //if(1-2-01查询个人账号详情.出参 等于空 )  2405

            //异常结束 2406
            throw new BizException("10200020", "用户名或密码错误，请重试！", false);
        } else if ((users != null && users.getIsInvalid() != null && users.getIsInvalid().equals("TRUE"))) {
            //elseif(1-2-01查询个人账号详情.是否失效 等于 是)  2410

            //异常结束 2411
            throw new BizException("10200024", "对不起，账号已失效，请联系管理员！", false);
        }
        if ((users != null && users.getPasswordErrorLockState() != null && users.getPasswordErrorLockState().equals("TRUE"))) {
            //if(1-2-01查询个人账号详情.密码错误锁定状态 等于 是)  2404

            //ModelCode: calculationMethod
            CalculationMethodRespDto calculationMethodRes = null;
            if (users != null) {
                CalculationMethodReqDto calculationMethodReq = new CalculationMethodReqDto();
                calculationMethodReq.setThresholdValue(Long.valueOf(600));//CUSTOM_CONVENTION//sourceId:45531_1_2407
                if (users != null) {
                    calculationMethodReq.setLastLockoutTime(users.getLastLockoutTime());//TIME_DIFFERENCE  TODO ruizhe dong//sourceId:45530_1_2407
                }

                /*M-计算方法（特殊方法）[1577]  入参计算值和阈值，计算结果和阈值比较，返回 true 和 false */
                Assert.isNull(calculationMethodReq.getLastLockoutTime(), "D1-执行登录验证(公共)-M-计算方法（特殊方法）-上次被锁定的时间不能为空", false);
                calculationMethodRes = nbUser.calculationMethod(calculationMethodReq);


            }
            if ((calculationMethodRes != null && calculationMethodRes.getIsInvalid() != null && calculationMethodRes.getIsInvalid().equals("FALSE"))) {
                //if(计算方法.是否有效 等于 否)  2408

                //异常结束 2409
                throw new BizException("10200022", "对不起，账号已锁定！请10分钟后再试~", false);
            }
        }
        //virtualUsage 1-2-09查询身份人员（验证员工合法性）  2221
        OriginalRoleMember originalRoleMember = null;
        if (users != null) {
            QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
            queryBeginMemberDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:56773_1_2221
            queryBeginMemberDetailReq.setIsInvalid("FALSE");//sourceId:56790_1_2221
            if (users != null) {
                queryBeginMemberDetailReq.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:56782_1_2221
            }
            if (reqDto != null) {
                queryBeginMemberDetailReq.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:56783_1_2221
                queryBeginMemberDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:56791_1_2221
            }

            /*1-2-09查询身份人员（验证员工合法性）[174]   */
            Assert.isNull(queryBeginMemberDetailReq.getUserId(), "D1-执行登录验证(公共)-1-2-09查询身份人员（验证员工合法性）-账号ID不能为空", false);
            Assert.isNull(queryBeginMemberDetailReq.getRoleCode(), "D1-执行登录验证(公共)-1-2-09查询身份人员（验证员工合法性）-身份角色编码不能为空", false);
            Assert.isNull(queryBeginMemberDetailReq.getSubjectLifeCycle(), "D1-执行登录验证(公共)-1-2-09查询身份人员（验证员工合法性）-主体生命周期不能为空", false);
            Assert.isNull(queryBeginMemberDetailReq.getIsInvalid(), "D1-执行登录验证(公共)-1-2-09查询身份人员（验证员工合法性）-是否失效不能为空", false);
            Assert.isNull(queryBeginMemberDetailReq.getSpaceId(), "D1-执行登录验证(公共)-1-2-09查询身份人员（验证员工合法性）-创建于空间ID不能为空", false);
            originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((originalRoleMember == null)) {
            //if(1-2-09查询身份人员详情.出参 等于空 )  2412

            //异常结束 2413
            throw new BizException("10200286", "当前员工不存在或已失效~", false);
        }
        //virtualUsage 1-3-13查询就职记录列表  8527
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        if (originalRoleMember != null) {
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setIsTransaction("FALSE");//sourceId:258639_1_8527
            queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:255660_1_8527
            if (originalRoleMember != null) {
                queryInductionRecordListReq.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:142158_1_8527
            }

            /*1-3-13查询就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1-执行登录验证(公共)-1-3-13查询就职记录列表-身份人员ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsTransaction(), "D1-执行登录验证(公共)-1-3-13查询就职记录列表-是否异动不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-执行登录验证(公共)-1-3-13查询就职记录列表-主体生命周期不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() == 0 && listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() == 0)) {
            //if(1-3-13查询就职记录列表.就职记录列表数据集条数 等于 0)  8528

            //异常结束 8529
            throw new BizException("10200287", "工作岗位有异动，请联系管理员！", false);
        }
        //virtualUsage 密码验证  1083
        Users users_2 = null;
        QueryUserDetailReq queryUserDetailReq_1 = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq_1.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:27154_1_1083
            queryUserDetailReq_1.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:27177_1_1083
            queryUserDetailReq_1.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:27179_1_1083
            queryUserDetailReq_1.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:27182_1_1083
        }
  
        /*密码验证[286] 用户登录错误次数判断
        登录错误：记录错误密码次数，当超过设置次数时，临时通过Redis设置账号10分钟内锁定  */

        users_2 = mUsersService.queryUserDetail(queryUserDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;


        users_3 = users_2;
        if ((users_2 == null && users != null && users.getFailedPasswordAttemptCount() < 5L)) {
            //if((密码验证.出参 等于空  and 1-2-01查询个人账号详情.使用无效密码登录次数 小于 5))  1244

            ImplementAsynUpdateUserComRespDto implementAsynUpdateUserComRespDto = null;
            if (users != null) {
                ImplementAsynUpdateUserComReqDto implementAsynUpdateUserComReqDto = new ImplementAsynUpdateUserComReqDto();
                implementAsynUpdateUserComReqDto.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:1535441_1_60958
                if (users != null) {
                    implementAsynUpdateUserComReqDto.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:1535439_1_60958
                    implementAsynUpdateUserComReqDto.setFirstFailedPasswordAttempTime(users.getFirstFailedPasswordAttempTime());//SimpleFieldAssign//sourceId:1535440_1_60958
                }

                /*D1异步账号无效密码登录次数自动加一(公共)[8477]   */
                Assert.isNull(implementAsynUpdateUserComReqDto.getUserId(), "D1-执行登录验证(公共)-D1异步账号无效密码登录次数自动加一(公共)-账号不能为空", false);
                Assert.isNull(implementAsynUpdateUserComReqDto.getComNumField(), "D1-执行登录验证(公共)-D1异步账号无效密码登录次数自动加一(公共)-通用数值字段（整数型）不能为空", false);
                implementAsynUpdateUserComRespDto = implementAsynUpdateUserCom(implementAsynUpdateUserComReqDto)/*vcase invoke 同服务,同domain*/;


            }
            //异常结束 1252
            throw new BizException("10200020", "用户名或密码错误，请重试！", false);
        } else if ((users_2 == null && users != null && users.getFailedPasswordAttemptCount() == 5L)) {
            //elseif((密码验证.出参 等于空  and 1-2-01查询个人账号详情.使用无效密码登录次数 等于 5))  1245

            ImplementAsynUpdateUserComRespDto implementAsynUpdateUserComRespDto_1 = null;
            if (users != null) {
                ImplementAsynUpdateUserComReqDto implementAsynUpdateUserComReqDto_1 = new ImplementAsynUpdateUserComReqDto();
                implementAsynUpdateUserComReqDto_1.setComNumField(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:1535444_1_60969
                if (users != null) {
                    implementAsynUpdateUserComReqDto_1.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:1535442_1_60969
                }

                /*D1异步锁定账号(公共)[8477]   */
                Assert.isNull(implementAsynUpdateUserComReqDto_1.getUserId(), "D1-执行登录验证(公共)-D1异步锁定账号(公共)-账号不能为空", false);
                Assert.isNull(implementAsynUpdateUserComReqDto_1.getComNumField(), "D1-执行登录验证(公共)-D1异步锁定账号(公共)-通用数值字段（整数型）不能为空", false);
                implementAsynUpdateUserComRespDto_1 = implementAsynUpdateUserCom(implementAsynUpdateUserComReqDto_1)/*vcase invoke 同服务,同domain*/;


            }
//异常结束 1255
            throw new BizException("10200021", "对不起，由于您输入的密码错误次数过多，账号已锁定！", false);
        } else {
            //else  1247

            boolean bOOLEAN;
            if (users != null) {
                Users users_4 = new Users();
                users_4.setLastLoginIp(CommonFunctionHelper.getLogInIp());//LOGIN_IP//sourceId:27234_1_2208
                users_4.setLastLoginTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:27235_1_2208
                users_4.setFailedPasswordAttemptCount(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:27236_1_2208
                users_4.setIsInvalid("FALSE");//sourceId:44251_1_2208
                users_4.setPasswordErrorLockState("FALSE");//sourceId:1535438_1_2208
                if (users_4 != null && users_4.getIsInvalid() != null && users_4.getIsInvalid().equals("FALSE")) {
                    users_4.setInvalidTime(CommonFunctionHelper.getFutureTime());//INVALID_NULL
                }//sourceId:44254_1_2208
                if (users != null) {
                    users_4.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:27233_1_2208
                }

                /*1-2-01修改个人账号（密码正确）[46]   */
                Assert.isNull(users_4.getUserId(), "D1-执行登录验证(公共)-1-2-01修改个人账号（密码正确）-个人账号不能为空", false);
                bOOLEAN = mUsersService.updateUser(users_4)/*vcase invoke 本地 method 方法调用;*/;


            }
            //processBranchName:正常结束 ,processBranchId:2209

        }
        ImplementSignInCheckComRespDto retData = new ImplementSignInCheckComRespDto();
        if (users_3 != null) {
            retData.setUserId(users_3.getUserId());//SimpleFieldAssign//sourceId:34388_1
            retData.setFailedPasswordAttemptCount(users_3.getFailedPasswordAttemptCount());//SimpleFieldAssign//sourceId:27774_1
            retData.setIsInvalid(users_3.getIsInvalid());//SimpleFieldAssign//sourceId:27775_1
            retData.setInvalidType(users_3.getInvalidType());//SimpleFieldAssign//sourceId:27776_1
            retData.setInvalidReason(users_3.getInvalidReason());//SimpleFieldAssign//sourceId:27777_1
            retData.setAppId(users_3.getAppId());//SimpleFieldAssign//sourceId:203086_1
        }


        return retData;
    }

    /**
     * D1执行登录验证处理数据(公共)[4195]
     * gen by moon at 1/20/2024, 10:36:20 PM
     */
    @Trace(operationName = "D1执行登录验证处理数据(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementSignIncheckProcessingDataComRespDto implementSignIncheckProcessingDataCom(ImplementSignIncheckProcessingDataComReqDto reqDto) {


        GenerateTokenRespDto generateTokenRes_1 = null;
        //virtualUsage D1-执行登录验证(公共)  14646
        ImplementSignInCheckComRespDto implementSignInCheckComRespDto = null;
        ImplementSignInCheckComReqDto implementSignInCheckComReqDto = new ImplementSignInCheckComReqDto();
        implementSignInCheckComReqDto.setRoleCode("STAFF");//CUSTOM_CONVENTION//sourceId:258974_1_14646
        if (reqDto != null) {
            implementSignInCheckComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:358926_1_14646
            implementSignInCheckComReqDto.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:258966_1_14646
            implementSignInCheckComReqDto.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:258968_1_14646
            implementSignInCheckComReqDto.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:258967_1_14646
            implementSignInCheckComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:258975_1_14646
        }

        /*D1-执行登录验证(公共)[1193]   */
        Assert.isNull(implementSignInCheckComReqDto.getRoleCode(), "D1执行登录验证处理数据(公共)-D1-执行登录验证(公共)-身份角色编码不能为空", false);
        Assert.isNull(implementSignInCheckComReqDto.getSpaceId(), "D1执行登录验证处理数据(公共)-D1-执行登录验证(公共)-创建于空间ID不能为空", false);
        implementSignInCheckComRespDto = implementSignInCheckCom(implementSignInCheckComReqDto)/*vcase invoke 同服务,同domain*/;


        if ((implementSignInCheckComRespDto != null && implementSignInCheckComRespDto.getUserId() != null)) {
            //if(D1-执行登录验证(公共).个人账号 值不等于空 )  14647

//ModelCode: generateToken
            GenerateTokenRespDto generateTokenRes = null;
            GenerateTokenReqDto generateTokenReq = new GenerateTokenReqDto();


            /*M-生成Token（特殊方法）[1533]  用于前端用户登录时生成tokenId */

            generateTokenRes = nbUser.generateToken(generateTokenReq);


            generateTokenRes_1 = generateTokenRes;
            QuerySpaceDetailComRespDto querySpaceDetailComRespDto = null;
            QuerySpaceDetailComReqDto querySpaceDetailComReqDto = new QuerySpaceDetailComReqDto();
            if (reqDto != null) {
                querySpaceDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:258978_1_14649
            }

            /*D1-2查空间详情(公共)[402]   */
            Assert.isNull(querySpaceDetailComReqDto.getSpaceId(), "D1执行登录验证处理数据(公共)-D1-2查空间详情(公共)-空间ID不能为空", false);
            querySpaceDetailComRespDto = baseService.querySpaceDetailCom(querySpaceDetailComReqDto)/*vcase invoke isSameApp*/;


            QueryPublicInfoDetailComRespDto queryPublicInfoDetailComRespDto = null;
            if (implementSignInCheckComRespDto != null && querySpaceDetailComRespDto != null) {
                QueryPublicInfoDetailComReqDto queryPublicInfoDetailComReqDto = new QueryPublicInfoDetailComReqDto();
                queryPublicInfoDetailComReqDto.setRoleCode("STAFF");//CUSTOM_CONVENTION//sourceId:259005_1_14650
                if (implementSignInCheckComRespDto != null) {
                    queryPublicInfoDetailComReqDto.setUserId(implementSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:259004_1_14650
                }
                if (querySpaceDetailComRespDto != null) {
                    queryPublicInfoDetailComReqDto.setSpaceId(querySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:259011_1_14650
                }

                /*D1-查询公共信息详情(身份人员ID及当前就职记录及当前最高组织等)[2098]   */
                Assert.isNull(queryPublicInfoDetailComReqDto.getUserId(), "D1执行登录验证处理数据(公共)-D1-查询公共信息详情(身份人员ID及当前就职记录及当前最高组织等)-账号ID不能为空", false);
                Assert.isNull(queryPublicInfoDetailComReqDto.getRoleCode(), "D1执行登录验证处理数据(公共)-D1-查询公共信息详情(身份人员ID及当前就职记录及当前最高组织等)-身份角色编码不能为空", false);
                Assert.isNull(queryPublicInfoDetailComReqDto.getSpaceId(), "D1执行登录验证处理数据(公共)-D1-查询公共信息详情(身份人员ID及当前就职记录及当前最高组织等)-创建于空间ID不能为空", false);
                queryPublicInfoDetailComRespDto = queryPublicInfoDetailCom(queryPublicInfoDetailComReqDto)/*vcase invoke 同服务,同domain*/;


            }
//ModelCode: clearTokenFromRedis
            ClearTokenFromRedisRespDto clearTokenFromRedisRes = null;
            if (queryPublicInfoDetailComRespDto != null) {
                ClearTokenFromRedisReqDto clearTokenFromRedisReq = new ClearTokenFromRedisReqDto();
                if (queryPublicInfoDetailComRespDto != null) {
                    clearTokenFromRedisReq.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:259013_1_14732
                }

                /*M-Redis清空用户Token（特殊方法）[1696]  入参身份ID，清除用户token */
                Assert.isNull(clearTokenFromRedisReq.getOriginalRoleMemberId(), "D1执行登录验证处理数据(公共)-M-Redis清空用户Token（特殊方法）-身份人员ID不能为空", false);
                clearTokenFromRedisRes = nbUser.clearTokenFromRedis(clearTokenFromRedisReq);


            }
            if ((queryPublicInfoDetailComRespDto != null && queryPublicInfoDetailComRespDto.getInductionUnitTypeCode() != null && queryPublicInfoDetailComRespDto.getInductionUnitTypeCode().equals("DEPT"))) {
                //if(D1-查询公共信息详情(身份人员ID及当前就职记录及当前最高组织等).就职单位类型实例 等于 部门)  14721

//ModelCode: putPublicInfoToRedis
                PutPublicInfoToRedisRespDto putPublicInfoToRedisRes = null;
                if (queryPublicInfoDetailComRespDto != null && implementSignInCheckComRespDto != null && querySpaceDetailComRespDto != null) {
                    PutPublicInfoToRedisReqDto putPublicInfoToRedisReq = new PutPublicInfoToRedisReqDto();
                    if (queryPublicInfoDetailComRespDto != null) {
                        putPublicInfoToRedisReq.setDeptId(queryPublicInfoDetailComRespDto.getEntityId());//SimpleFieldAssign//sourceId:259018_1_14724
                        putPublicInfoToRedisReq.setInductionRecordId(queryPublicInfoDetailComRespDto.getInductionRecordId());//SimpleFieldAssign//sourceId:259016_1_14724
                        putPublicInfoToRedisReq.setOrganizationId(queryPublicInfoDetailComRespDto.getOrganizationId());//SimpleFieldAssign//sourceId:259229_1_14724
                        putPublicInfoToRedisReq.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:259015_1_14724
                        putPublicInfoToRedisReq.setPositionRoleCode(queryPublicInfoDetailComRespDto.getPositionRoleCode());//SimpleFieldAssign//sourceId:355656_1_14724
                        putPublicInfoToRedisReq.setHighestOrgID(queryPublicInfoDetailComRespDto.getHighestOrgID());//SimpleFieldAssign//sourceId:259025_1_14724
                    }
                    if (implementSignInCheckComRespDto != null) {
                        putPublicInfoToRedisReq.setUserId(implementSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:259014_1_14724
                    }
                    if (querySpaceDetailComRespDto != null) {
                        putPublicInfoToRedisReq.setSpaceId(querySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:259019_1_14724
                        putPublicInfoToRedisReq.setSceneId(querySpaceDetailComRespDto.getSubjectionSceneId());//SimpleFieldAssign//sourceId:259020_1_14724
                        putPublicInfoToRedisReq.setAppId(querySpaceDetailComRespDto.getSubjectionAppId());//SimpleFieldAssign//sourceId:259021_1_14724
                    }
                    if (generateTokenRes != null) {
                        putPublicInfoToRedisReq.setToken(generateTokenRes.getToken());//SimpleFieldAssign//sourceId:259023_1_14724
                    }

                    /*M-公共信息存储Redis（特殊方法）[1580]  用于用户前端登录成功后，将登录的公共信息缓存到REDIS中 */
                    Assert.isNull(putPublicInfoToRedisReq.getInductionRecordId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-就职记录ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getOrganizationId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getUserId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-账号不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getOriginalRoleMemberId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-身份人员ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getHighestOrgID(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-最高组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getSpaceId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-空间ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getSceneId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-场景ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getAppId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-联盟应用ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getToken(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-token不能为空", false);
                    putPublicInfoToRedisRes = nbUser.putPublicInfoToRedis(putPublicInfoToRedisReq);


                }
            } else {
                //else  14731

//ModelCode: putPublicInfoToRedis
                PutPublicInfoToRedisRespDto putPublicInfoToRedisRes_1 = null;
                if (queryPublicInfoDetailComRespDto != null && implementSignInCheckComRespDto != null && querySpaceDetailComRespDto != null) {
                    PutPublicInfoToRedisReqDto putPublicInfoToRedisReq_1 = new PutPublicInfoToRedisReqDto();
                    if (queryPublicInfoDetailComRespDto != null) {
                        putPublicInfoToRedisReq_1.setInductionRecordId(queryPublicInfoDetailComRespDto.getInductionRecordId());//SimpleFieldAssign//sourceId:259016_1_14734
                        putPublicInfoToRedisReq_1.setOrganizationId(queryPublicInfoDetailComRespDto.getOrganizationId());//SimpleFieldAssign//sourceId:259229_1_14734
                        putPublicInfoToRedisReq_1.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:259015_1_14734
                        putPublicInfoToRedisReq_1.setPositionRoleCode(queryPublicInfoDetailComRespDto.getPositionRoleCode());//SimpleFieldAssign//sourceId:355656_1_14734
                        putPublicInfoToRedisReq_1.setHighestOrgID(queryPublicInfoDetailComRespDto.getHighestOrgID());//SimpleFieldAssign//sourceId:259025_1_14734
                    }
                    if (implementSignInCheckComRespDto != null) {
                        putPublicInfoToRedisReq_1.setUserId(implementSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:259014_1_14734
                    }
                    if (querySpaceDetailComRespDto != null) {
                        putPublicInfoToRedisReq_1.setSpaceId(querySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:259019_1_14734
                        putPublicInfoToRedisReq_1.setSceneId(querySpaceDetailComRespDto.getSubjectionSceneId());//SimpleFieldAssign//sourceId:259020_1_14734
                        putPublicInfoToRedisReq_1.setAppId(querySpaceDetailComRespDto.getSubjectionAppId());//SimpleFieldAssign//sourceId:259021_1_14734
                    }
                    if (generateTokenRes != null) {
                        putPublicInfoToRedisReq_1.setToken(generateTokenRes.getToken());//SimpleFieldAssign//sourceId:259023_1_14734
                    }

                    /*M-公共信息存储Redis（特殊方法）[1580]  用于用户前端登录成功后，将登录的公共信息缓存到REDIS中 */
                    Assert.isNull(putPublicInfoToRedisReq_1.getInductionRecordId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-就职记录ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getOrganizationId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getUserId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-账号不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getOriginalRoleMemberId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-身份人员ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getHighestOrgID(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-最高组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getSpaceId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-空间ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getSceneId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-场景ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getAppId(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-联盟应用ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getToken(), "D1执行登录验证处理数据(公共)-M-公共信息存储Redis（特殊方法）-token不能为空", false);
                    putPublicInfoToRedisRes_1 = nbUser.putPublicInfoToRedis(putPublicInfoToRedisReq_1);


                }
            }
            AddUsersUnionRespDto addUsersUnionRespDto = null;
            if (queryPublicInfoDetailComRespDto != null && implementSignInCheckComRespDto != null) {
                AddUsersUnionReqDto addUsersUnionReqDto = new AddUsersUnionReqDto();
                addUsersUnionReqDto.setUnionAppObjectType("XSZ");//sourceId:259036_1_14720
                if (queryPublicInfoDetailComRespDto != null) {
                    addUsersUnionReqDto.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:259340_1_14720
                    addUsersUnionReqDto.setUnionAppObjectName(queryPublicInfoDetailComRespDto.getIdCardName());//SimpleFieldAssign//sourceId:259038_1_14720
                }
                if (implementSignInCheckComRespDto != null) {
                    addUsersUnionReqDto.setUnionAppObjectId(implementSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:259037_1_14720
                }

                /*D1-2新增联盟用户(公共)[1021]   */
                Assert.isNull(addUsersUnionReqDto.getOriginalRoleMemberId(), "D1执行登录验证处理数据(公共)-D1-2新增联盟用户(公共)-身份人员ID不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getUnionAppObjectType(), "D1执行登录验证处理数据(公共)-D1-2新增联盟用户(公共)-联盟应用对象类型不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getUnionAppObjectId(), "D1执行登录验证处理数据(公共)-D1-2新增联盟用户(公共)-联盟应用用户ID不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getUnionAppObjectName(), "D1执行登录验证处理数据(公共)-D1-2新增联盟用户(公共)-联盟应用用户名不能为空", false);
                addUsersUnionRespDto = addUsersUnion(addUsersUnionReqDto)/*vcase invoke 同服务,同domain*/;


            }
            boolean bOOLEAN;
            if (implementSignInCheckComRespDto != null) {
                Users users = new Users();
                users.setLastLoginTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:381284_1_19655
                if (implementSignInCheckComRespDto != null) {
                    users.setUserId(implementSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:381282_1_19655
                }

                /*1-2-01记录当前个人账号登录时间[46]   */
                Assert.isNull(users.getUserId(), "D1执行登录验证处理数据(公共)-1-2-01记录当前个人账号登录时间-个人账号不能为空", false);
                Assert.isNull(users.getLastLoginTime(), "D1执行登录验证处理数据(公共)-1-2-01记录当前个人账号登录时间-最后登录时间不能为空", false);
                bOOLEAN = mUsersService.updateUser(users)/*vcase invoke 本地 method 方法调用;*/;


            }
//ModelCode: asynchronizationStart
            QueryPublicInfoDetailComRespDto finalQueryPublicInfoDetailComRespDto = queryPublicInfoDetailComRespDto;
            ImplementSignInCheckComRespDto finalImplementSignInCheckComRespDto = implementSignInCheckComRespDto;
            QuerySpaceDetailComRespDto finalQuerySpaceDetailComRespDto = querySpaceDetailComRespDto;
            Callable<String> call = new Callable<String>() {

                @Override
                public String call() throws Exception {
                    //执行方法
                    ImplementInitializationMessageLocationByLoginComRespDto implementInitializationMessageLocationByLoginComRespDto = null;
                    if (finalQueryPublicInfoDetailComRespDto != null && finalImplementSignInCheckComRespDto != null && finalQuerySpaceDetailComRespDto != null) {
                        ImplementInitializationMessageLocationByLoginComReqDto implementInitializationMessageLocationByLoginComReqDto = new ImplementInitializationMessageLocationByLoginComReqDto();
                        if (finalQueryPublicInfoDetailComRespDto != null) {
                            implementInitializationMessageLocationByLoginComReqDto.setOriginalRoleMemberId(finalQueryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1492950_1_50513
                            implementInitializationMessageLocationByLoginComReqDto.setCreateInductionId(finalQueryPublicInfoDetailComRespDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1492952_1_50513
                        }
                        if (finalImplementSignInCheckComRespDto != null) {
                            implementInitializationMessageLocationByLoginComReqDto.setUserId(finalImplementSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:1492951_1_50513
                        }
                        if (finalQuerySpaceDetailComRespDto != null) {
                            implementInitializationMessageLocationByLoginComReqDto.setSpaceId(finalQuerySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:1492953_1_50513
                            implementInitializationMessageLocationByLoginComReqDto.setAppId(finalQuerySpaceDetailComRespDto.getSubjectionAppId());//SimpleFieldAssign//sourceId:1492954_1_50513
                        }

                        /*D2执行当前用户消息数量首次初始化(公共)[7575]   */
                        Assert.isNull(implementInitializationMessageLocationByLoginComReqDto.getOriginalRoleMemberId(), "D1执行登录验证处理数据(公共)-D2执行当前用户消息数量首次初始化(公共)-身份人员ID不能为空", false);
                        Assert.isNull(implementInitializationMessageLocationByLoginComReqDto.getUserId(), "D1执行登录验证处理数据(公共)-D2执行当前用户消息数量首次初始化(公共)-账号不能为空", false);
                        Assert.isNull(implementInitializationMessageLocationByLoginComReqDto.getCreateInductionId(), "D1执行登录验证处理数据(公共)-D2执行当前用户消息数量首次初始化(公共)-创建人就职记录ID不能为空", false);
                        Assert.isNull(implementInitializationMessageLocationByLoginComReqDto.getSpaceId(), "D1执行登录验证处理数据(公共)-D2执行当前用户消息数量首次初始化(公共)-创建于空间ID不能为空", false);
                        Assert.isNull(implementInitializationMessageLocationByLoginComReqDto.getAppId(), "D1执行登录验证处理数据(公共)-D2执行当前用户消息数量首次初始化(公共)-创建于联盟应用ID不能为空", false);
                        implementInitializationMessageLocationByLoginComRespDto = fwCompMessageClient.implementInitializationMessageLocationByLoginCom(implementInitializationMessageLocationByLoginComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                    }
//ModelCode: asynchronizationEnd
                    return "";
                }
            };
            CommonFunctionHelper.asynExcute(call);
        }
        ImplementSignIncheckProcessingDataComRespDto retData = new ImplementSignIncheckProcessingDataComRespDto();
        if (generateTokenRes_1 != null) {
            retData.setToken(generateTokenRes_1.getToken());//SimpleFieldAssign//sourceId:259212_1
        }


        return retData;
    }

    /**
     * D1-2新增男女尊称(公共)[4001]
     * gen by moon at 2/25/2023, 5:48:36 PM
     */
    @Trace(operationName = "D1-2新增男女尊称(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddSexNameComRespDto addSexNameCom(AddSexNameComReqDto reqDto) {


        AutoAenerateSemanticContentRespDto generateSemanticInstanceRes_1 = null;
        AutoAenerateSemanticContentRespDto generateSemanticInstanceRes_3 = null;
//virtualUsage 1-2-02查询个人性别与姓名（判断条件）  13204
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setPersonalDataId(reqDto.getPersonalDataId());//SimpleFieldAssign//sourceId:211550_1_13204
        }

        /*1-2-02查询个人性别与姓名（判断条件）[155]   */
        Assert.isNull(queryUserinfoDetailReq.getPersonalDataId(), "D1-2新增男女尊称(公共)-1-2-02查询个人性别与姓名（判断条件）-个人资料记录ID不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq);


        if ((userinfo != null && userinfo.getSex() != null && userinfo.getSex().equals("MALE"))) {
            //if(1-2-02查询个人性别与姓名（判断条件）.用户性别 等于 男)  13152

//ModelCode: generateSemanticInstance
            AutoAenerateSemanticContentRespDto generateSemanticInstanceRes = null;
            if (userinfo != null) {
                AutoAenerateSemanticContentReqDto generateSemanticInstanceReq = new AutoAenerateSemanticContentReqDto();
                generateSemanticInstanceReq.setUserRespectName("先生");//CUSTOM_CONVENTION//sourceId:208539_1_13153
                if (userinfo != null) {
                    generateSemanticInstanceReq.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:210517_1_13153
                }

                /*M1-自动生成语义内容（男士）[3975]  解析语义模板，生成模板实例 */

                generateSemanticInstanceRes = nbUser.autoAenerateSemanticContent(generateSemanticInstanceReq);


                generateSemanticInstanceRes_1 = generateSemanticInstanceRes;
            }
//processBranchName:正常结束 ,processBranchId:13154

        } else if ((userinfo != null && userinfo.getSex() != null && userinfo.getSex().equals("FEMALE"))) {
            //elseif(1-2-02查询个人性别与姓名（判断条件）.用户性别 等于 女)  13155

//ModelCode: generateSemanticInstance
            AutoAenerateSemanticContentRespDto generateSemanticInstanceRes_2 = null;
            if (userinfo != null) {
                AutoAenerateSemanticContentReqDto generateSemanticInstanceReq_1 = new AutoAenerateSemanticContentReqDto();
                generateSemanticInstanceReq_1.setUserRespectName("女士");//CUSTOM_CONVENTION//sourceId:208546_1_13156
                if (userinfo != null) {
                    generateSemanticInstanceReq_1.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:210518_1_13156
                }

                /*M1-自动生成语义内容（女士）[3975]  解析语义模板，生成模板实例 */

                generateSemanticInstanceRes_2 = nbUser.autoAenerateSemanticContent(generateSemanticInstanceReq_1);


                generateSemanticInstanceRes_3 = generateSemanticInstanceRes_2;
            }
//processBranchName:正常结束 ,processBranchId:13157

        }
        AddSexNameComRespDto retData = new AddSexNameComRespDto();
        if (generateSemanticInstanceRes_1 != null) {
            retData.setObjectName(generateSemanticInstanceRes_1.getObjectName());//SimpleFieldAssign//sourceId:211554_1
        }
        if (generateSemanticInstanceRes_3 != null) {
            retData.setObjectName(generateSemanticInstanceRes_3.getObjectName());//SimpleFieldAssign//sourceId:211554_1
        }


        return retData;
    }

    /**
     * D1-2查询个人密保问题(公共)[3963]
     * gen by moon at 6/3/2023, 6:09:22 PM
     */
    @Trace(operationName = "D1-2查询个人密保问题(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserPwdProblemDetailComRespDto queryUserPwdProblemDetailCom(QueryUserPwdProblemDetailComReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getUserName() != null || reqDto != null && reqDto.getPhone() != null)) {
            //if((D1-2查询密保问题详情.用户名 值不等于空  or D1-2查询密保问题详情.绑定手机 值不等于空 ))  13045

            Users users = null;
            QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
            if (reqDto != null) {
                queryUserDetailReq.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:203247_1_13046
                queryUserDetailReq.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:203249_1_13046
            }

            /*1-2-01查询个人账号详情[286]   */

            users = mUsersService.queryUserDetail(queryUserDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((users != null && users.getUserId() != null)) {
                //if(1-2-01通过用户名或手机号查个人账号ID.个人账号 值不等于空 )  13055

                Userinfo userinfo = null;
                QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
                if (users != null) {
                    queryUserinfoDetailReq.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:203254_1_13056
                }

                /*1-2-02查询个人资料详情[155]   */

                userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;
                Assert.isTrue(userinfo == null || userinfo.getMyPwdProblem() == null, "找不到数据，系统异常", false);


                OriginalRoleMember originalRoleMember = null;
                QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
                if (users != null) {
                    queryBeginMemberDetailReq.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:323497_1_16218
                }
                if (reqDto != null) {
                    queryBeginMemberDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:980418_1_16218
                }

                /*1-2-09查询身份人员详情（通过账号查询身份人员ID）[174]   */
                Assert.isNull(queryBeginMemberDetailReq.getUserId(), "D1-2查询个人密保问题(公共)-1-2-09查询身份人员详情（通过账号查询身份人员ID）-账号ID不能为空", false);
                Assert.isNull(queryBeginMemberDetailReq.getSpaceId(), "D1-2查询个人密保问题(公共)-1-2-09查询身份人员详情（通过账号查询身份人员ID）-创建于空间ID不能为空", false);
                originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq)/*vcase invoke 本地 method 方法调用;*/;
                Assert.isTrue(originalRoleMember == null || originalRoleMember.getOriginalRoleMemberId() == null, "找不到数据，系统异常", false);


//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
                if (userinfo != null) {
                    receptionServiceReq.setPersonalDataId(userinfo.getPersonalDataId());//SimpleFieldAssign//sourceId:972226_1_42601
                    receptionServiceReq.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:994566_1_42601
                    receptionServiceReq.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:994577_1_42601
                    receptionServiceReq.setMyPwdProblem(userinfo.getMyPwdProblem());//SimpleFieldAssign//sourceId:972224_1_42601
                }
                if (users != null) {
                    receptionServiceReq.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:972223_1_42601
                }
                if (originalRoleMember != null) {
                    receptionServiceReq.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:972217_1_42601
                    receptionServiceReq.setSpaceId(originalRoleMember.getSpaceId());//SimpleFieldAssign//sourceId:972218_1_42601
                    receptionServiceReq.setAppId(originalRoleMember.getAppId());//SimpleFieldAssign//sourceId:972222_1_42601
                }

                /*M1-获取接收字段（特殊方法）[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getPersonalDataId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-个人资料记录ID不能为空", false);
                Assert.isNull(receptionServiceReq.getUserId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-账号不能为空", false);
                Assert.isNull(receptionServiceReq.getOriginalRoleMemberId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-身份人员ID不能为空", false);
                Assert.isNull(receptionServiceReq.getIdCardName(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-真实姓名不能为空", false);
                Assert.isNull(receptionServiceReq.getUserFace(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-真实头像不能为空", false);
                Assert.isNull(receptionServiceReq.getMyPwdProblem(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-密保问题不能为空", false);
                Assert.isNull(receptionServiceReq.getSpaceId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-创建于空间ID不能为空", false);
                Assert.isNull(receptionServiceReq.getAppId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-创建于联盟应用ID不能为空", false);
                receptionServiceRes = nbUser.queryReceiveFieldDetail(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
//processBranchName:正常结束 ,processBranchId:13059

            } else {
                //else  13057

//异常结束 13058
                throw new BizException("10200030", "对不起，账号不存在！", false);
            }
//processBranchName:正常结束 ,processBranchId:13048

        } else if ((reqDto != null && reqDto.getRoleMemberCode() != null)) {
            //elseif(D1-2查询密保问题详情(公共).身份人员编号 值不等于空 )  13050

            OriginalRoleMemberInfo originalRoleMemberInfo = null;
            QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
            if (reqDto != null) {
                queryBeginMembInfoDetailReq.setRoleMemberCode(reqDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:203273_1_13051
                queryBeginMembInfoDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:980423_1_13051
            }

            /*1-2-10查询身份人员资料详情[116]   */
            Assert.isNull(queryBeginMembInfoDetailReq.getSpaceId(), "D1-2查询个人密保问题(公共)-1-2-10查询身份人员资料详情-创建于空间ID不能为空", false);
            originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((originalRoleMemberInfo != null && originalRoleMemberInfo.getOriginalRoleMemberId() != null)) {
                //if(1-2-10通过工号查询身份人员ID.身份人员ID 值不等于空 )  13060

                OriginalRoleMember originalRoleMember_2 = null;
                QueryBeginMemberDetailReq queryBeginMemberDetailReq_1 = new QueryBeginMemberDetailReq();
                if (originalRoleMemberInfo != null) {
                    queryBeginMemberDetailReq_1.setOriginalRoleMemberId(originalRoleMemberInfo.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:203310_1_13061
                }

                /*1-2-09查询身份人员详情[174]   */

                originalRoleMember_2 = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;


                Userinfo userinfo_2 = null;
                QueryUserinfoDetailReq queryUserinfoDetailReq_1 = new QueryUserinfoDetailReq();
                if (originalRoleMember_2 != null) {
                    queryUserinfoDetailReq_1.setUserId(originalRoleMember_2.getUserId());//SimpleFieldAssign//sourceId:203254_1_13062
                }

                /*1-2-02查询个人资料详情[155]   */

                userinfo_2 = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
                Assert.isTrue(userinfo_2 == null || userinfo_2.getMyPwdProblem() == null, "找不到数据，系统异常", false);


//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
                if (userinfo_2 != null) {
                    receptionServiceReq_1.setPersonalDataId(userinfo_2.getPersonalDataId());//SimpleFieldAssign//sourceId:972226_1_42602
                    receptionServiceReq_1.setIdCardName(userinfo_2.getIdCardName());//SimpleFieldAssign//sourceId:994566_1_42602
                    receptionServiceReq_1.setUserFace(userinfo_2.getUserFace());//SimpleFieldAssign//sourceId:994577_1_42602
                    receptionServiceReq_1.setMyPwdProblem(userinfo_2.getMyPwdProblem());//SimpleFieldAssign//sourceId:972224_1_42602
                }
                if (originalRoleMember_2 != null) {
                    receptionServiceReq_1.setUserId(originalRoleMember_2.getUserId());//SimpleFieldAssign//sourceId:972223_1_42602
                    receptionServiceReq_1.setOriginalRoleMemberId(originalRoleMember_2.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:972217_1_42602
                    receptionServiceReq_1.setSpaceId(originalRoleMember_2.getSpaceId());//SimpleFieldAssign//sourceId:972218_1_42602
                    receptionServiceReq_1.setAppId(originalRoleMember_2.getAppId());//SimpleFieldAssign//sourceId:972222_1_42602
                }

                /*M1-获取接收字段（特殊方法）[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_1.getPersonalDataId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-个人资料记录ID不能为空", false);
                Assert.isNull(receptionServiceReq_1.getUserId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-账号不能为空", false);
                Assert.isNull(receptionServiceReq_1.getOriginalRoleMemberId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-身份人员ID不能为空", false);
                Assert.isNull(receptionServiceReq_1.getIdCardName(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-真实姓名不能为空", false);
                Assert.isNull(receptionServiceReq_1.getUserFace(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-真实头像不能为空", false);
                Assert.isNull(receptionServiceReq_1.getMyPwdProblem(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-密保问题不能为空", false);
                Assert.isNull(receptionServiceReq_1.getSpaceId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-创建于空间ID不能为空", false);
                Assert.isNull(receptionServiceReq_1.getAppId(), "D1-2查询个人密保问题(公共)-M1-获取接收字段（特殊方法）-创建于联盟应用ID不能为空", false);
                receptionServiceRes_2 = nbUser.queryReceiveFieldDetail(receptionServiceReq_1);


                receptionServiceRes_1 = receptionServiceRes_2;
//processBranchName:正常结束 ,processBranchId:13063

            } else {
                //else  13064

//异常结束 13065
                throw new BizException("10200030", "对不起，账号不存在！", false);
            }
//processBranchName:正常结束 ,processBranchId:13054

        } else {
            //else  13066

//异常结束 13067
            throw new BizException("500", "系统异常，请联系管理员！", false);
        }
        QueryUserPwdProblemDetailComRespDto retData = new QueryUserPwdProblemDetailComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setPersonalDataId(receptionServiceRes_1.getPersonalDataId());//SimpleFieldAssign//sourceId:972334_1
            retData.setOriginalRoleMemberId(receptionServiceRes_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:972336_1
            retData.setUserId(receptionServiceRes_1.getUserId());//SimpleFieldAssign//sourceId:972335_1
            retData.setUserFace(receptionServiceRes_1.getUserFace());//SimpleFieldAssign//sourceId:994579_1
            retData.setIdCardName(receptionServiceRes_1.getIdCardName());//SimpleFieldAssign//sourceId:994578_1
            retData.setMyPwdProblem(receptionServiceRes_1.getMyPwdProblem());//SimpleFieldAssign//sourceId:972337_1
            retData.setSpaceId(receptionServiceRes_1.getSpaceId());//SimpleFieldAssign//sourceId:972338_1
            retData.setAppId(receptionServiceRes_1.getAppId());//SimpleFieldAssign//sourceId:972339_1
        }


        return retData;
    }

    /**
     * D1-2找回密码[4009]
     * gen by moon at 6/2/2023, 2:39:35 PM
     */
    @Trace(operationName = "D1-2找回密码")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public FindPasswordRespDto findPassword(FindPasswordReqDto reqDto) {


        QueryUserPwdProblemDetailComRespDto queryUserPwdProblemDetailComRespDto_1 = null;
        AddSexNameComRespDto addSexNameComRespDto_1 = null;
//virtualUsage D1-2查询个人密保问题(公共)  31263
        QueryUserPwdProblemDetailComRespDto queryUserPwdProblemDetailComRespDto = null;
        QueryUserPwdProblemDetailComReqDto queryUserPwdProblemDetailComReqDto = new QueryUserPwdProblemDetailComReqDto();
        if (reqDto != null) {
            queryUserPwdProblemDetailComReqDto.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:211452_1_31263
            queryUserPwdProblemDetailComReqDto.setRoleMemberCode(reqDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:211453_1_31263
            queryUserPwdProblemDetailComReqDto.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:211454_1_31263
            queryUserPwdProblemDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:980424_1_31263
        }

        /*D1-2查询个人密保问题(公共)[3963]   */
        Assert.isNull(queryUserPwdProblemDetailComReqDto.getSpaceId(), "D1-2找回密码-D1-2查询个人密保问题(公共)-创建于空间ID不能为空", false);
        queryUserPwdProblemDetailComRespDto = queryUserPwdProblemDetailCom(queryUserPwdProblemDetailComReqDto)/*vcase invoke 同服务,同domain*/;


        queryUserPwdProblemDetailComRespDto_1 = queryUserPwdProblemDetailComRespDto;
//virtualUsage 1-2-02验证个人密保答案正确性  31264
        Userinfo userinfo = null;
        if (queryUserPwdProblemDetailComRespDto != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (queryUserPwdProblemDetailComRespDto != null) {
                queryUserinfoDetailReq.setPersonalDataId(queryUserPwdProblemDetailComRespDto.getPersonalDataId());//SimpleFieldAssign//sourceId:211505_1_31264
                queryUserinfoDetailReq.setMyPwdProblem(queryUserPwdProblemDetailComRespDto.getMyPwdProblem());//SimpleFieldAssign//sourceId:211522_1_31264
            }
            if (reqDto != null) {
                queryUserinfoDetailReq.setMyPwdAnswer(reqDto.getMyPwdAnswer());//SimpleFieldAssign//sourceId:211523_1_31264
            }

            /*1-2-02验证个人密保答案正确性[155]   */
            Assert.isNull(queryUserinfoDetailReq.getPersonalDataId(), "D1-2找回密码-1-2-02验证个人密保答案正确性-个人资料记录ID不能为空", false);
            Assert.isNull(queryUserinfoDetailReq.getMyPwdProblem(), "D1-2找回密码-1-2-02验证个人密保答案正确性-密保问题不能为空", false);
            Assert.isNull(queryUserinfoDetailReq.getMyPwdAnswer(), "D1-2找回密码-1-2-02验证个人密保答案正确性-密保答案不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((userinfo != null)) {
            //if(1-2-02验证个人密保答案正确性.出参 值不等于空 )  31265

            boolean bOOLEAN;
            if (queryUserPwdProblemDetailComRespDto != null) {
                Users users = new Users();
                users.setLastPasswordChangedTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:211503_1_31266
                if (queryUserPwdProblemDetailComRespDto != null) {
                    users.setUserId(queryUserPwdProblemDetailComRespDto.getUserId());//SimpleFieldAssign//sourceId:211501_1_31266
                }
                if (reqDto != null) {
                    users.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:211502_1_31266
                }

                /*1-2-01重设密码（通过密保）[46]   */
                Assert.isNull(users.getUserId(), "D1-2找回密码-1-2-01重设密码（通过密保）-个人账号不能为空", false);
                Assert.isNull(users.getPassword(), "D1-2找回密码-1-2-01重设密码（通过密保）-密码不能为空", false);
                Assert.isNull(users.getLastPasswordChangedTime(), "D1-2找回密码-1-2-01重设密码（通过密保）-上次修改密码时间不能为空", false);
                bOOLEAN = mUsersService.updateUser(users)/*vcase invoke 本地 method 方法调用;*/;


            }
            AddSexNameComRespDto addSexNameComRespDto = null;
            if (userinfo != null) {
                AddSexNameComReqDto addSexNameComReqDto = new AddSexNameComReqDto();
                if (userinfo != null) {
                    addSexNameComReqDto.setPersonalDataId(userinfo.getPersonalDataId());//SimpleFieldAssign//sourceId:211555_1_31267
                }

                /*D1-2新增男女尊称(公共)[4001]   */
                Assert.isNull(addSexNameComReqDto.getPersonalDataId(), "D1-2找回密码-D1-2新增男女尊称(公共)-个人资料记录ID不能为空", false);
                addSexNameComRespDto = addSexNameCom(addSexNameComReqDto)/*vcase invoke 同服务,同domain*/;


                addSexNameComRespDto_1 = addSexNameComRespDto;
            }
        } else {
            //else  31268

//异常结束 31269
            throw new BizException("10200170", "对不起，密保答案不正确！请重新输入～。", false);
        }
        FindPasswordRespDto retData = new FindPasswordRespDto();
        if (addSexNameComRespDto_1 != null) {
            retData.setObjectName(addSexNameComRespDto_1.getObjectName());//SimpleFieldAssign//sourceId:211557_1
        }
        if (queryUserPwdProblemDetailComRespDto_1 != null) {
            retData.setPersonalDataId(queryUserPwdProblemDetailComRespDto_1.getPersonalDataId());//SimpleFieldAssign//sourceId:972417_1
            retData.setOriginalRoleMemberId(queryUserPwdProblemDetailComRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:972419_1
            retData.setUserId(queryUserPwdProblemDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:972418_1
            retData.setUserFace(queryUserPwdProblemDetailComRespDto_1.getUserFace());//SimpleFieldAssign//sourceId:994582_1
            retData.setIdCardName(queryUserPwdProblemDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:994583_1
            retData.setMyPwdProblem(queryUserPwdProblemDetailComRespDto_1.getMyPwdProblem());//SimpleFieldAssign//sourceId:972420_1
            retData.setSpaceId(queryUserPwdProblemDetailComRespDto_1.getSpaceId());//SimpleFieldAssign//sourceId:972421_1
            retData.setAppId(queryUserPwdProblemDetailComRespDto_1.getAppId());//SimpleFieldAssign//sourceId:972422_1
        }


        return retData;
    }

    /**
     * D1-2查询个人密保问题详情[4268]
     * gen by moon at 10/2/2022, 6:20:47 AM
     */
    @Trace(operationName = "D1-2查询个人密保问题详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserPwdProblemDetailRespDto queryUserPwdProblemDetail(QueryUserPwdProblemDetailReqDto reqDto) {


        Userinfo userinfo_1 = null;
        if ((reqDto != null && reqDto.getUserName() != null || reqDto != null && reqDto.getPhone() != null)) {
            //if((D1-2查询个人密保问题详情.用户名 值不等于空  or D1-2查询个人密保问题详情.绑定手机 值不等于空 ))  15047

            Users users = null;
            QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
            if (reqDto != null) {
                queryUserDetailReq.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:267954_1_15048
                queryUserDetailReq.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:267956_1_15048
            }

            /*1-2-01查询个人账号详情[286]   */

            users = mUsersService.queryUserDetail(queryUserDetailReq);
            Assert.isTrue(users == null || users.getUserId() == null, "返回值不能为空", false);


            Userinfo userinfo = null;
            if (users != null) {
                QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
                if (users != null) {
                    queryUserinfoDetailReq.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:267863_1_15051
                }

                /*1-2-02查询个人资料详情[155]   */
                Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-2查询个人密保问题详情-1-2-02查询个人资料详情-账号不能为空", false);
                userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq);


                userinfo_1 = userinfo;
            }
//processBranchName:正常结束 ,processBranchId:15055

        } else if ((reqDto != null && reqDto.getRoleMemberCode() != null)) {
            //elseif(D1-2查询个人密保问题详情.身份人员编号 值不等于空 )  15050

            OriginalRoleMemberInfo originalRoleMemberInfo = null;
            QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
            if (reqDto != null) {
                queryBeginMembInfoDetailReq.setRoleMemberCode(reqDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:267979_1_15052
            }

            /*1-2-10查询身份人员资料详情[116]   */

            originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq);
            Assert.isTrue(originalRoleMemberInfo == null || originalRoleMemberInfo.getOriginalRoleMemberId() == null, "返回值不能为空", false);


            OriginalRoleMember originalRoleMember = null;
            if (originalRoleMemberInfo != null) {
                QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
                if (originalRoleMemberInfo != null) {
                    queryBeginMemberDetailReq.setOriginalRoleMemberId(originalRoleMemberInfo.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:268016_1_15053
                }

                /*1-2-09查询身份人员详情[174]   */
                Assert.isNull(queryBeginMemberDetailReq.getOriginalRoleMemberId(), "D1-2查询个人密保问题详情-1-2-09查询身份人员详情-身份人员ID不能为空", false);
                originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq);


            }
            Userinfo userinfo_2 = null;
            if (originalRoleMember != null) {
                QueryUserinfoDetailReq queryUserinfoDetailReq_1 = new QueryUserinfoDetailReq();
                if (originalRoleMember != null) {
                    queryUserinfoDetailReq_1.setUserId(originalRoleMember.getUserId());//SimpleFieldAssign//sourceId:267863_1_15054
                }

                /*1-2-02查询个人资料详情[155]   */
                Assert.isNull(queryUserinfoDetailReq_1.getUserId(), "D1-2查询个人密保问题详情-1-2-02查询个人资料详情-账号不能为空", false);
                userinfo_2 = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq_1);


                userinfo_1 = userinfo_2;
            }
//processBranchName:正常结束 ,processBranchId:15056

        } else {
            //else  15057

//异常结束 15058
            throw new BizException("500", "系统异常，请联系管理员！", false);
        }
        QueryUserPwdProblemDetailRespDto retData = new QueryUserPwdProblemDetailRespDto();
        if (userinfo_1 != null) {
            retData.setMyPwdProblem(userinfo_1.getMyPwdProblem());//SimpleFieldAssign//sourceId:269847_1
        }


        return retData;
    }

    /**
     * D1-2查询账号详情(公共)[1032]
     * gen by moon at 10/1/2022, 11:57:14 PM
     */
    @Trace(operationName = "D1-2查询账号详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUserDetailComRespDto queryUserDetailCom(QueryUserDetailComReqDto reqDto) {


        Users users_1 = null;
//步骤0: 1-2-01查询个人账号详情 - queryUserDetail
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:21269_1
            queryUserDetailReq.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:21292_1
            queryUserDetailReq.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:21299_1
            queryUserDetailReq.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:21313_1
        }

        /*1-2-01查询个人账号详情[286]   */

        users = mUsersService.queryUserDetail(queryUserDetailReq);


        users_1 = users;

        QueryUserDetailComRespDto retData = new QueryUserDetailComRespDto();
        if (users_1 != null) {
            retData.setUserId(users_1.getUserId());//SimpleFieldAssign//sourceId:21615_1
            retData.setFailedPasswordAttemptCount(users_1.getFailedPasswordAttemptCount());//SimpleFieldAssign//sourceId:21616_1
            retData.setInvalidType(users_1.getInvalidType());//SimpleFieldAssign//sourceId:21618_1
            retData.setInvalidReason(users_1.getInvalidReason());//SimpleFieldAssign//sourceId:21619_1
            retData.setIsInvalid(users_1.getIsInvalid());//SimpleFieldAssign//sourceId:21620_1
            retData.setUserName(users_1.getUserName());//SimpleFieldAssign//sourceId:21621_1
            retData.setPassword(users_1.getPassword());//SimpleFieldAssign//sourceId:21622_1
            retData.setEmail(users_1.getEmail());//SimpleFieldAssign//sourceId:21623_1
            retData.setPassByEmail(users_1.getPassByEmail());//SimpleFieldAssign//sourceId:21624_1
            retData.setPhone(users_1.getPhone());//SimpleFieldAssign//sourceId:21625_1
            retData.setPassByPhone(users_1.getPassByPhone());//SimpleFieldAssign//sourceId:21626_1
            retData.setRegTime(users_1.getRegTime());//SimpleFieldAssign//sourceId:21627_1
            retData.setLastLoginTime(users_1.getLastLoginTime());//SimpleFieldAssign//sourceId:21628_1
            retData.setLastLoginIp(users_1.getLastLoginIp());//SimpleFieldAssign//sourceId:21629_1
            retData.setLastPasswordChangedTime(users_1.getLastPasswordChangedTime());//SimpleFieldAssign//sourceId:21630_1
            retData.setLastLockoutTime(users_1.getLastLockoutTime());//SimpleFieldAssign//sourceId:21631_1
            retData.setFirstFailedPasswordAttempTime(users_1.getFirstFailedPasswordAttempTime());//SimpleFieldAssign//sourceId:21632_1
            retData.setDevName(users_1.getDevName());//SimpleFieldAssign//sourceId:21633_1
            retData.setSourceCode(users_1.getSourceCode());//SimpleFieldAssign//sourceId:21634_1
            retData.setInviteUserId(users_1.getInviteUserId());//SimpleFieldAssign//sourceId:21635_1
            retData.setIsUserInfoDone(users_1.getIsUserInfoDone());//SimpleFieldAssign//sourceId:21636_1
        }


        return retData;
    }

    /**
     * D1登录成功生成Token[1034]
     * gen by moon at 10/1/2022, 11:57:28 PM
     */
    @Trace(operationName = "D1登录成功生成Token")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public CreateTokenRespDto createToken(CreateTokenReqDto reqDto) {


        GenerateTokenRespDto generateTokenRes_1 = null;
//步骤0: M-生成Token（特殊方法） - generateToken
        //ModelCode: generateToken
        GenerateTokenRespDto generateTokenRes = null;
        GenerateTokenReqDto generateTokenReq = new GenerateTokenReqDto();


        /*M-生成Token（特殊方法）[1533]  用于前端用户登录时生成tokenId */

        generateTokenRes = nbUser.generateToken(generateTokenReq);


        generateTokenRes_1 = generateTokenRes;

        CreateTokenRespDto retData = new CreateTokenRespDto();
        if (generateTokenRes_1 != null) {
            retData.setToken(generateTokenRes_1.getToken());//SimpleFieldAssign//sourceId:43368_1
        }


        return retData;
    }

    /**
     * D1-工号信息验证(公共)[1192]
     * gen by moon at 9/18/2023, 7:23:09 PM
     */
    @Trace(operationName = "D1-工号信息验证(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public CheckLoginNumberRespDto checkLoginNumber(CheckLoginNumberReqDto reqDto) {


        OriginalRoleMemberInfo originalRoleMemberInfo_1 = null;
        OriginalRoleMember originalRoleMember_1 = null;
//virtualUsage 1-2-10查询身份人员资料详情  1077
        OriginalRoleMemberInfo originalRoleMemberInfo = null;
        QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
        if (reqDto != null) {
            queryBeginMembInfoDetailReq.setRoleMemberCode(reqDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:27113_1_1077
            queryBeginMembInfoDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:27114_1_1077
        }

        /*1-2-10查询身份人员资料详情[116]   */

        originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        originalRoleMemberInfo_1 = originalRoleMemberInfo;
        if ((originalRoleMemberInfo != null)) {
            //if(1-2-10查询身份人员资料详情.出参 值不等于空 )  1078

            OriginalRoleMember originalRoleMember = null;
            if (originalRoleMemberInfo != null) {
                QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
                if (originalRoleMemberInfo != null) {
                    queryBeginMemberDetailReq.setOriginalRoleMemberId(originalRoleMemberInfo.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:27146_1_1079
                }
                if (reqDto != null) {
                    queryBeginMemberDetailReq.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:27147_1_1079
                }

                /*1-2-09查询身份人员详情[174]   */
                Assert.isNull(queryBeginMemberDetailReq.getOriginalRoleMemberId(), "D1-工号信息验证(公共)-1-2-09查询身份人员详情-身份人员ID不能为空", false);
                Assert.isNull(queryBeginMemberDetailReq.getRoleCode(), "D1-工号信息验证(公共)-1-2-09查询身份人员详情-身份角色编码不能为空", false);
                originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq)/*vcase invoke 本地 method 方法调用;*/;


                originalRoleMember_1 = originalRoleMember;
            }
            if ((originalRoleMember != null && originalRoleMember.getIsInvalid() != null && originalRoleMember.getIsInvalid().equals("TRUE"))) {
                //if(1-2-09查询身份人员详情.是否失效 等于 是)  1279

//异常结束 1280
                throw new BizException("10200024", "对不起，账号已失效，请联系管理员！", false);
            } else {
                //else  1281

//processBranchName:正常结束 ,processBranchId:1282

            }
        } else {
            //else  1080

//异常结束 1081
            throw new BizException("10200020", "用户名或密码错误，请重试！", false);
        }
        CheckLoginNumberRespDto retData = new CheckLoginNumberRespDto();
        if (originalRoleMember_1 != null) {
            retData.setUserId(originalRoleMember_1.getUserId());//SimpleFieldAssign//sourceId:27752_1
        }
        if (originalRoleMemberInfo_1 != null) {
            retData.setOriginalRoleMemberId(originalRoleMemberInfo_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:27753_1
        }


        return retData;
    }

    /**
     * D1-执行统一认证登录验证(公共)[7377]
     * gen by moon at 12/23/2023, 1:25:25 AM
     */
    @Trace(operationName = "D1-执行统一认证登录验证(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementUnifiedCertificationSignInCheckComRespDto implementUnifiedCertificationSignInCheckCom(ImplementUnifiedCertificationSignInCheckComReqDto reqDto) {


        Users users_1 = null;
//virtualUsage 1-2-01查询个人账号详情  48430
        Users users = null;
        QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
        if (reqDto != null) {
            queryUserDetailReq.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:1118903_1_48430
//queryUserDetailReq.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:1118901_1_48430
            queryUserDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1118878_1_48430
        }

        /*1-2-01查询个人账号详情[286]   */

        users = mUsersService.queryUserDetail(queryUserDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        users_1 = users;
        if ((users == null)) {
            //if(1-2-01查个人账号详情.出参 值等于空 )  48431

//异常结束 48432
            throw new BizException("10200030", "对不起，账号不存在！", false);
        } else if ((users != null && users.getIsInvalid() != null && users.getIsInvalid().equals("TRUE"))) {
            //elseif(1-2-01查个人账号详情.是否失效 等于 是)  48434

//异常结束 48435
            throw new BizException("10200024", "对不起，账号已失效，请联系管理员！", false);
        }
        if ((users != null && users.getLastLockoutTime() != null)) {
            //if(1-2-01查个人账号详情.上次被锁定的时间 值不等于空 )  48437

//ModelCode: calculationMethod
            CalculationMethodRespDto calculationMethodRes = null;
            if (users != null) {
                CalculationMethodReqDto calculationMethodReq = new CalculationMethodReqDto();
                calculationMethodReq.setThresholdValue(Long.valueOf(600));//CUSTOM_CONVENTION//sourceId:1118908_1_48438
                if (users != null) {
                    calculationMethodReq.setLastLockoutTime(users.getLastLockoutTime());//TIME_DIFFERENCE  TODO ruizhe dong//sourceId:1118907_1_48438
                }

                /*M-计算方法（特殊方法）[1577]  入参计算值和阈值，计算结果和阈值比较，返回 true 和 false */
                Assert.isNull(calculationMethodReq.getLastLockoutTime(), "D1-执行统一认证登录验证(公共)-M-计算方法（特殊方法）-上次被锁定的时间不能为空", false);
                Assert.isNull(calculationMethodReq.getThresholdValue(), "D1-执行统一认证登录验证(公共)-M-计算方法（特殊方法）-阈值不能为空", false);
                calculationMethodRes = nbUser.calculationMethod(calculationMethodReq);


            }
            if ((calculationMethodRes != null && calculationMethodRes.getIsInvalid() != null && calculationMethodRes.getIsInvalid().equals("FALSE"))) {
                //if(M-计算方法（特殊方法）.是否有效 等于 否)  48442

//异常结束 48445
                throw new BizException("10200022", "对不起，账号已锁定，请稍后重试！", false);
            }
        }
//virtualUsage 1-2-09查询身份人员详情  48447
        OriginalRoleMember originalRoleMember = null;
        QueryBeginMemberDetailReq queryBeginMemberDetailReq = new QueryBeginMemberDetailReq();
        queryBeginMemberDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1119607_1_48447
        queryBeginMemberDetailReq.setIsInvalid("FALSE");//sourceId:1119608_1_48447
        if (reqDto != null) {
            queryBeginMemberDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1119605_1_48447
            queryBeginMemberDetailReq.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1119606_1_48447
            queryBeginMemberDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1119609_1_48447
        }

        /*1-2-09查询身份人员详情[174]   */
        Assert.isNull(queryBeginMemberDetailReq.getUserId(), "D1-执行统一认证登录验证(公共)-1-2-09查询身份人员详情-账号ID不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getRoleCode(), "D1-执行统一认证登录验证(公共)-1-2-09查询身份人员详情-身份角色编码不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getSubjectLifeCycle(), "D1-执行统一认证登录验证(公共)-1-2-09查询身份人员详情-主体生命周期不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getIsInvalid(), "D1-执行统一认证登录验证(公共)-1-2-09查询身份人员详情-是否失效不能为空", false);
        Assert.isNull(queryBeginMemberDetailReq.getSpaceId(), "D1-执行统一认证登录验证(公共)-1-2-09查询身份人员详情-创建于空间ID不能为空", false);
        originalRoleMember = mOriginalRoleMemberService.queryBeginMemberDetail(queryBeginMemberDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((originalRoleMember == null)) {
            //if(1-2-09查身份人员（验证员工合法性）.出参 值等于空 )  48448

//异常结束 48449
            throw new BizException("10200030", "对不起，账号不存在！", false);
        }
//virtualUsage 1-3-13查询就职记录列表  48450
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        if (originalRoleMember != null) {
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setIsTransaction("FALSE");//sourceId:1119612_1_48450
            queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1119613_1_48450
            if (originalRoleMember != null) {
                queryInductionRecordListReq.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1119611_1_48450
            }

            /*1-3-13查询就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1-执行统一认证登录验证(公共)-1-3-13查询就职记录列表-身份人员ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsTransaction(), "D1-执行统一认证登录验证(公共)-1-3-13查询就职记录列表-是否异动不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-执行统一认证登录验证(公共)-1-3-13查询就职记录列表-主体生命周期不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() == 0)) {
            //if(1-3-13查询就职记录列表.就职记录列表数据集条数 等于 0)  48451

//异常结束 48452
            throw new BizException("10200030", "对不起，账号不存在！", false);
        } else {
            //else  48453

            boolean bOOLEAN;
            if (users != null) {
                Users users_2 = new Users();
                users_2.setLastLoginIp(CommonFunctionHelper.getLogInIp());//LOGIN_IP//sourceId:1119616_1_48454
                users_2.setLastLoginTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1119617_1_48454
                users_2.setFailedPasswordAttemptCount(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:1119618_1_48454
                users_2.setIsInvalid("FALSE");//sourceId:1119619_1_48454
                if (users_2 != null && users_2.getIsInvalid() != null && users_2.getIsInvalid().equals("FALSE")) {
                    // TODO: 2023/9/12 手写代码，不支持置空
                    users_2.setInvalidTime(CommonFunctionHelper.getFutureTime());//INVALID_NULL
                }//sourceId:1119621_1_48454
                if (users != null) {
                    users_2.setUserId(users.getUserId());//SimpleFieldAssign//sourceId:1119615_1_48454
                }

                /*1-2-01修改个人账号[46]   */
                Assert.isNull(users_2.getUserId(), "D1-执行统一认证登录验证(公共)-1-2-01修改个人账号-个人账号不能为空", false);
                bOOLEAN = mUsersService.updateUser(users_2)/*vcase invoke 本地 method 方法调用;*/;


            }
        }
        ImplementUnifiedCertificationSignInCheckComRespDto retData = new ImplementUnifiedCertificationSignInCheckComRespDto();
        if (users_1 != null) {
            retData.setUserId(users_1.getUserId());//SimpleFieldAssign//sourceId:1119960_1
            retData.setFailedPasswordAttemptCount(users_1.getFailedPasswordAttemptCount());//SimpleFieldAssign//sourceId:1119961_1
            retData.setIsInvalid(users_1.getIsInvalid());//SimpleFieldAssign//sourceId:1119962_1
            retData.setInvalidType(users_1.getInvalidType());//SimpleFieldAssign//sourceId:1119963_1
            retData.setAppId(users_1.getAppId());//SimpleFieldAssign//sourceId:1119964_1
        }


        return retData;
    }

    /**
     * D1获取空间三方鉴权配置信息(公共)[7379]
     * gen by moon at 12/21/2023, 12:37:51 AM
     */
    @Trace(operationName = "D1获取空间三方鉴权配置信息(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ObtainSpaceThirdPartyAuthenticationConfInfoComRespDto obtainSpaceThirdPartyAuthenticationConfInfoCom(ObtainSpaceThirdPartyAuthenticationConfInfoComReqDto reqDto) {


        UnionApp unionApp_1 = null;
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_1 = null;
        QueryReceiveFieldDetailRespDto receptionServiceRes_1 = null;
//virtualUsage 1-2-06查租户联盟应用  48439
        UnionApp unionApp = null;
        QueryAppDetailReq queryAppDetailReq = new QueryAppDetailReq();
        queryAppDetailReq.setPlatformType("FALSE");//sourceId:1119258_1_48439
        queryAppDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1119248_1_48439
        if (reqDto != null) {
            queryAppDetailReq.setWebsite(reqDto.getDnsAddresses());//SimpleFieldAssign//sourceId:1119255_1_48439
        }

        /*1-2-06查租户联盟应用[168]   */
        Assert.isNull(queryAppDetailReq.getWebsite(), "D1获取空间三方鉴权配置信息(公共)-1-2-06查租户联盟应用-网址不能为空", false);
        Assert.isNull(queryAppDetailReq.getPlatformType(), "D1获取空间三方鉴权配置信息(公共)-1-2-06查租户联盟应用-是否平台应用不能为空", false);
        Assert.isNull(queryAppDetailReq.getSubjectLifeCycle(), "D1获取空间三方鉴权配置信息(公共)-1-2-06查租户联盟应用-主体生命周期不能为空", false);
        unionApp = mUnionAppService.queryAppDetail(queryAppDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        unionApp_1 = unionApp;
        if ((unionApp != null)) {
            //if(1-2-06查租户联盟应用.出参 值不等于空 )  48440

            QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
            if (unionApp != null) {
                QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
                queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("UAM_TYPE_CONF");//CUSTOM_CONVENTION//sourceId:1119260_1_48441
                queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1119269_1_48441
                if (unionApp != null) {
                    queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(unionApp.getUniqueSpaceId());//SimpleFieldAssign//sourceId:1119262_1_48441
                }

                /*D2查租户空间统一认证类型配置[2486]   */
                Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(), "D1获取空间三方鉴权配置信息(公共)-D2查租户空间统一认证类型配置-开通对象ID不能为空", false);
                Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D1获取空间三方鉴权配置信息(公共)-D2查租户空间统一认证类型配置-配置项标识不能为空", false);
                Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D1获取空间三方鉴权配置信息(公共)-D2查租户空间统一认证类型配置-是否标准答案不能为空", false);
                queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                queryConfItemMatchAnswerDetailComRespDto_1 = queryConfItemMatchAnswerDetailComRespDto;
            }
            if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("CAS"))) {
                //if(D2查租户空间统一认证类型配置.答案值 等于 对接CAS)  48443

                QueryItemMatchMultiSelectResultToAnswerListComRespDto queryItemMatchMultiSelectResultToAnswerListComRespDto = null;
                if (unionApp != null) {
                    QueryItemMatchMultiSelectResultToAnswerListComReqDto queryItemMatchMultiSelectResultToAnswerListComReqDto = new QueryItemMatchMultiSelectResultToAnswerListComReqDto();
                    queryItemMatchMultiSelectResultToAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1119563_1_48455
                    queryItemMatchMultiSelectResultToAnswerListComReqDto.setConfItemCode("CAS");//CUSTOM_CONVENTION//sourceId:1119564_1_48455
                    queryItemMatchMultiSelectResultToAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1119565_1_48455
                    if (unionApp != null) {
                        queryItemMatchMultiSelectResultToAnswerListComReqDto.setResultAspObjId(unionApp.getUniqueSpaceId());//SimpleFieldAssign//sourceId:1119562_1_48455
                    }

                    /*D2-3查CAS统一认证参数配置答案[5196]   */
                    Assert.isNull(queryItemMatchMultiSelectResultToAnswerListComReqDto.getResultAspObjId(), "D1获取空间三方鉴权配置信息(公共)-D2-3查CAS统一认证参数配置答案-开通对象ID不能为空", false);
                    Assert.isNull(queryItemMatchMultiSelectResultToAnswerListComReqDto.getIsPlatData(), "D1获取空间三方鉴权配置信息(公共)-D2-3查CAS统一认证参数配置答案-是否标准答案不能为空", false);
                    queryItemMatchMultiSelectResultToAnswerListComRespDto = confSchemeService.queryItemMatchMultiSelectResultToAnswerListCom(queryItemMatchMultiSelectResultToAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                }
//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes = null;
                if (queryItemMatchMultiSelectResultToAnswerListComRespDto != null) {
                    QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
                    if (queryItemMatchMultiSelectResultToAnswerListComRespDto != null) {
                        receptionServiceReq.setAuthLoginUrl(queryItemMatchMultiSelectResultToAnswerListComRespDto.getAuthLoginUrl());//SimpleFieldAssign//sourceId:1119554_1_48456
                        receptionServiceReq.setAuthLogoutUrl(queryItemMatchMultiSelectResultToAnswerListComRespDto.getAuthLogoutUrl());//SimpleFieldAssign//sourceId:1119555_1_48456
                        receptionServiceReq.setAuthCheckTicketUrl(queryItemMatchMultiSelectResultToAnswerListComRespDto.getAuthCheckTicketUrl());//SimpleFieldAssign//sourceId:1119556_1_48456
                        receptionServiceReq.setAppCallBackUrl(queryItemMatchMultiSelectResultToAnswerListComRespDto.getAppCallBackUrl());//SimpleFieldAssign//sourceId:1119557_1_48456
                    }

                    /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */

                    receptionServiceRes = nbUser.queryReceiveFieldDetail(receptionServiceReq);


                    receptionServiceRes_1 = receptionServiceRes;
                }
            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("DISABLE"))) {
                //elseif(D2查租户空间统一认证类型配置.答案值 等于 不启用)  48457

//processBranchName:正常结束 ,processBranchId:48458

            }
        }
        ObtainSpaceThirdPartyAuthenticationConfInfoComRespDto retData = new ObtainSpaceThirdPartyAuthenticationConfInfoComRespDto();
        if (unionApp_1 != null) {
            retData.setUniqueSpaceId(unionApp_1.getUniqueSpaceId());//SimpleFieldAssign//sourceId:1120247_1
        }
        if (queryConfItemMatchAnswerDetailComRespDto_1 != null) {
            retData.setEndValue(queryConfItemMatchAnswerDetailComRespDto_1.getEndValue());//SimpleFieldAssign//sourceId:1119591_1
        }
        if (receptionServiceRes_1 != null) {
            retData.setAuthLoginUrl(receptionServiceRes_1.getAuthLoginUrl());//SimpleFieldAssign//sourceId:1119587_1
            retData.setAuthLogoutUrl(receptionServiceRes_1.getAuthLogoutUrl());//SimpleFieldAssign//sourceId:1119588_1
            retData.setAuthCheckTicketUrl(receptionServiceRes_1.getAuthCheckTicketUrl());//SimpleFieldAssign//sourceId:1119589_1
            retData.setAppCallBackUrl(receptionServiceRes_1.getAppCallBackUrl());//SimpleFieldAssign//sourceId:1119590_1
        }


        return retData;
    }

    /**
     * D1执行统一认证退出登录(公共)[7382]
     * gen by moon at 9/12/2023, 7:56:19 PM
     */
    @Trace(operationName = "D1执行统一认证退出登录(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAuthLoginOutComRespDto implementAuthLoginOutCom(ImplementAuthLoginOutComReqDto reqDto) {


        ImplementAuthLoginOutRespDto implementAuthLoginOutRes_1 = null;
//步骤0: M1-执行统一认证退出登录（特殊方法） - implementAuthLoginOut
        //ModelCode: implementAuthLoginOut
        ImplementAuthLoginOutRespDto implementAuthLoginOutRes = null;
        ImplementAuthLoginOutReqDto implementAuthLoginOutReq = new ImplementAuthLoginOutReqDto();
        if (reqDto != null) {
            implementAuthLoginOutReq.setAuthLogoutUrl(reqDto.getAuthLogoutUrl());//SimpleFieldAssign//sourceId:1119622_1
            implementAuthLoginOutReq.setAuthLoginUrl(reqDto.getAuthLoginUrl());//SimpleFieldAssign//sourceId:1119623_1
        }

        /*M1-执行统一认证退出登录（特殊方法）[7380]   */
        Assert.isNull(implementAuthLoginOutReq.getAuthLogoutUrl(), "D1执行统一认证退出登录(公共)-M1-执行统一认证退出登录（特殊方法）-认证中心登出地址不能为空", false);
        Assert.isNull(implementAuthLoginOutReq.getAuthLoginUrl(), "D1执行统一认证退出登录(公共)-M1-执行统一认证退出登录（特殊方法）-认证中心登录地址不能为空", false);
        implementAuthLoginOutRes = nbUser.implementAuthLoginOut(implementAuthLoginOutReq);


        implementAuthLoginOutRes_1 = implementAuthLoginOutRes;

        ImplementAuthLoginOutComRespDto retData = new ImplementAuthLoginOutComRespDto();
        if (implementAuthLoginOutRes_1 != null) {
            retData.setAuthLoginUrl(implementAuthLoginOutRes_1.getAuthLoginUrl());//SimpleFieldAssign//sourceId:1119627_1
        }


        return retData;
    }

    /**
     * D1-获取统一认证用户信息(公共)[7383]
     * gen by moon at 9/12/2023, 7:56:37 PM
     */
    @Trace(operationName = "D1-获取统一认证用户信息(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ObtainAuthAccountInfoComRespDto obtainAuthAccountInfoCom(ObtainAuthAccountInfoComReqDto reqDto) {


        ObtainAuthAccountInfoRespDto obtainAuthAccountInfoRes_1 = null;
//步骤0: M1-获取统一认证用户信息（特殊方法） - obtainAuthAccountInfo
        //ModelCode: obtainAuthAccountInfo
        ObtainAuthAccountInfoRespDto obtainAuthAccountInfoRes = null;
        ObtainAuthAccountInfoReqDto obtainAuthAccountInfoReq = new ObtainAuthAccountInfoReqDto();
        if (reqDto != null) {
            obtainAuthAccountInfoReq.setAuthTicket(reqDto.getAuthTicket());//SimpleFieldAssign//sourceId:1119948_1
            obtainAuthAccountInfoReq.setAuthCheckTicketUrl(reqDto.getAuthCheckTicketUrl());//SimpleFieldAssign//sourceId:1119949_1
            obtainAuthAccountInfoReq.setAppCallBackUrl(reqDto.getAppCallBackUrl());//SimpleFieldAssign//sourceId:1119950_1
            obtainAuthAccountInfoReq.setUserNameField(reqDto.getUserNameField());//SimpleFieldAssign//sourceId:1119978_1
            obtainAuthAccountInfoReq.setRoleMemberCodeField(reqDto.getRoleMemberCodeField());//SimpleFieldAssign//sourceId:1119979_1
            obtainAuthAccountInfoReq.setPhoneField(reqDto.getPhoneField());//SimpleFieldAssign//sourceId:1119980_1
        }

        /*M1-获取统一认证用户信息（特殊方法）[7381]   */
        Assert.isNull(obtainAuthAccountInfoReq.getAuthTicket(), "D1-获取统一认证用户信息(公共)-M1-获取统一认证用户信息（特殊方法）-认证中心票证ticket不能为空", false);
        Assert.isNull(obtainAuthAccountInfoReq.getAuthCheckTicketUrl(), "D1-获取统一认证用户信息(公共)-M1-获取统一认证用户信息（特殊方法）-认证中心验证票据地址不能为空", false);
        Assert.isNull(obtainAuthAccountInfoReq.getAppCallBackUrl(), "D1-获取统一认证用户信息(公共)-M1-获取统一认证用户信息（特殊方法）-应用回调地址不能为空", false);
        Assert.isNull(obtainAuthAccountInfoReq.getRoleMemberCodeField(), "D1-获取统一认证用户信息(公共)-M1-获取统一认证用户信息（特殊方法）-工号的字段名不能为空", false);
        obtainAuthAccountInfoRes = nbUser.obtainAuthAccountInfo(obtainAuthAccountInfoReq);


        obtainAuthAccountInfoRes_1 = obtainAuthAccountInfoRes;

        ObtainAuthAccountInfoComRespDto retData = new ObtainAuthAccountInfoComRespDto();
        if (obtainAuthAccountInfoRes_1 != null) {
            retData.setUserName(obtainAuthAccountInfoRes_1.getUserName());//SimpleFieldAssign//sourceId:1119958_1
            retData.setRoleMemberCode(obtainAuthAccountInfoRes_1.getRoleMemberCode());//SimpleFieldAssign//sourceId:1119981_1
            retData.setPhone(obtainAuthAccountInfoRes_1.getPhone());//SimpleFieldAssign//sourceId:1119959_1
        }


        return retData;
    }

    /**
     * D1-执行统一认证登录处理数据(公共)[7384]
     * gen by moon at 12/23/2023, 1:25:38 AM
     */
    @Trace(operationName = "D1-执行统一认证登录处理数据(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementUnifiedCertificationSignInCheckProcessingDataComRespDto implementUnifiedCertificationSignInCheckProcessingDataCom(ImplementUnifiedCertificationSignInCheckProcessingDataComReqDto reqDto) {


        GenerateTokenRespDto generateTokenRes_1 = null;
//virtualUsage D1-工号信息验证(公共)  48486
        CheckLoginNumberRespDto checkLoginNumberRespDto = null;
        CheckLoginNumberReqDto checkLoginNumberReqDto = new CheckLoginNumberReqDto();
        checkLoginNumberReqDto.setRoleCode("STAFF");//CUSTOM_CONVENTION//sourceId:1120277_1_48486
        if (reqDto != null) {
            checkLoginNumberReqDto.setRoleMemberCode(reqDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:1120276_1_48486
            checkLoginNumberReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1120278_1_48486
        }

        /*D1-工号信息验证(公共)[1192]   */
        Assert.isNull(checkLoginNumberReqDto.getRoleMemberCode(), "D1-执行统一认证登录处理数据(公共)-D1-工号信息验证(公共)-身份人员编号不能为空", false);
        Assert.isNull(checkLoginNumberReqDto.getRoleCode(), "D1-执行统一认证登录处理数据(公共)-D1-工号信息验证(公共)-身份角色编码不能为空", false);
        Assert.isNull(checkLoginNumberReqDto.getSpaceId(), "D1-执行统一认证登录处理数据(公共)-D1-工号信息验证(公共)-创建于空间ID不能为空", false);
        checkLoginNumberRespDto = checkLoginNumber(checkLoginNumberReqDto)/*vcase invoke 同服务,同domain*/;


//virtualUsage D1-执行统一认证登录验证(公共)  48459
        ImplementUnifiedCertificationSignInCheckComRespDto implementUnifiedCertificationSignInCheckComRespDto = null;
        if (checkLoginNumberRespDto != null) {
            ImplementUnifiedCertificationSignInCheckComReqDto implementUnifiedCertificationSignInCheckComReqDto = new ImplementUnifiedCertificationSignInCheckComReqDto();
            implementUnifiedCertificationSignInCheckComReqDto.setRoleCode("STAFF");//CUSTOM_CONVENTION//sourceId:1119867_1_48459
            if (reqDto != null) {
//      implementUnifiedCertificationSignInCheckComReqDto.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:1119865_1_48459
                implementUnifiedCertificationSignInCheckComReqDto.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:1119864_1_48459
                implementUnifiedCertificationSignInCheckComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1119868_1_48459
            }
            if (checkLoginNumberRespDto != null) {
                implementUnifiedCertificationSignInCheckComReqDto.setUserId(checkLoginNumberRespDto.getUserId());//SimpleFieldAssign//sourceId:1120281_1_48459
            }

            /*D1-执行统一认证登录验证(公共)[7377]   */
            Assert.isNull(implementUnifiedCertificationSignInCheckComReqDto.getRoleCode(), "D1-执行统一认证登录处理数据(公共)-D1-执行统一认证登录验证(公共)-身份角色编码不能为空", false);
            Assert.isNull(implementUnifiedCertificationSignInCheckComReqDto.getSpaceId(), "D1-执行统一认证登录处理数据(公共)-D1-执行统一认证登录验证(公共)-创建于空间ID不能为空", false);
            implementUnifiedCertificationSignInCheckComRespDto = implementUnifiedCertificationSignInCheckCom(implementUnifiedCertificationSignInCheckComReqDto)/*vcase invoke 同服务,同domain*/;


        }
        if ((implementUnifiedCertificationSignInCheckComRespDto != null && implementUnifiedCertificationSignInCheckComRespDto.getUserId() != null)) {
            //if(D1-执行统一认证登录验证(公共).个人账号 值不等于空 )  48460

//ModelCode: generateToken
            GenerateTokenRespDto generateTokenRes = null;
            GenerateTokenReqDto generateTokenReq = new GenerateTokenReqDto();


            /*M-生成Token（特殊方法）[1533]  用于前端用户登录时生成tokenId */

            generateTokenRes = nbUser.generateToken(generateTokenReq);


            generateTokenRes_1 = generateTokenRes;
            QuerySpaceDetailComRespDto querySpaceDetailComRespDto = null;
            QuerySpaceDetailComReqDto querySpaceDetailComReqDto = new QuerySpaceDetailComReqDto();
            if (reqDto != null) {
                querySpaceDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1119971_1_48462
            }

            /*D1-2查空间详情(公共)[402]   */
            Assert.isNull(querySpaceDetailComReqDto.getSpaceId(), "D1-执行统一认证登录处理数据(公共)-D1-2查空间详情(公共)-空间ID不能为空", false);
            querySpaceDetailComRespDto = baseService.querySpaceDetailCom(querySpaceDetailComReqDto)/*vcase invoke isSameApp*/;


            QueryPublicInfoDetailComRespDto queryPublicInfoDetailComRespDto = null;
            if (implementUnifiedCertificationSignInCheckComRespDto != null && querySpaceDetailComRespDto != null) {
                QueryPublicInfoDetailComReqDto queryPublicInfoDetailComReqDto = new QueryPublicInfoDetailComReqDto();
                queryPublicInfoDetailComReqDto.setRoleCode("STAFF");//CUSTOM_CONVENTION//sourceId:1119897_1_48463
                if (implementUnifiedCertificationSignInCheckComRespDto != null) {
                    queryPublicInfoDetailComReqDto.setUserId(implementUnifiedCertificationSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:1119896_1_48463
                }
                if (querySpaceDetailComRespDto != null) {
                    queryPublicInfoDetailComReqDto.setSpaceId(querySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:1119903_1_48463
                }

                /*D1-查询公共信息详情(公共)[2098]   */
                Assert.isNull(queryPublicInfoDetailComReqDto.getUserId(), "D1-执行统一认证登录处理数据(公共)-D1-查询公共信息详情(公共)-账号ID不能为空", false);
                Assert.isNull(queryPublicInfoDetailComReqDto.getRoleCode(), "D1-执行统一认证登录处理数据(公共)-D1-查询公共信息详情(公共)-身份角色编码不能为空", false);
                Assert.isNull(queryPublicInfoDetailComReqDto.getSpaceId(), "D1-执行统一认证登录处理数据(公共)-D1-查询公共信息详情(公共)-创建于空间ID不能为空", false);
                queryPublicInfoDetailComRespDto = queryPublicInfoDetailCom(queryPublicInfoDetailComReqDto)/*vcase invoke 同服务,同domain*/;


            }
//ModelCode: clearTokenFromRedis
            ClearTokenFromRedisRespDto clearTokenFromRedisRes = null;
            if (queryPublicInfoDetailComRespDto != null) {
                ClearTokenFromRedisReqDto clearTokenFromRedisReq = new ClearTokenFromRedisReqDto();
                if (queryPublicInfoDetailComRespDto != null) {
                    clearTokenFromRedisReq.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1119908_1_48464
                }

                /*M-Redis清空用户Token（特殊方法）[1696]  入参身份ID，清除用户token */
                Assert.isNull(clearTokenFromRedisReq.getOriginalRoleMemberId(), "D1-执行统一认证登录处理数据(公共)-M-Redis清空用户Token（特殊方法）-身份人员ID不能为空", false);
                clearTokenFromRedisRes = nbUser.clearTokenFromRedis(clearTokenFromRedisReq);


            }
            if ((queryPublicInfoDetailComRespDto != null && queryPublicInfoDetailComRespDto.getInductionUnitTypeCode() != null && queryPublicInfoDetailComRespDto.getInductionUnitTypeCode().equals("DEPT"))) {
                //if(D1-查询公共信息详情(身份人员ID及当前就职记录及当前最高组织等).就职单位类型实例 等于 部门)  48465

//ModelCode: putPublicInfoToRedis
                PutPublicInfoToRedisRespDto putPublicInfoToRedisRes = null;
                if (queryPublicInfoDetailComRespDto != null && implementUnifiedCertificationSignInCheckComRespDto != null && querySpaceDetailComRespDto != null) {
                    PutPublicInfoToRedisReqDto putPublicInfoToRedisReq = new PutPublicInfoToRedisReqDto();
                    if (queryPublicInfoDetailComRespDto != null) {
                        putPublicInfoToRedisReq.setDeptId(queryPublicInfoDetailComRespDto.getEntityId());//SimpleFieldAssign//sourceId:1119913_1_48466
                        putPublicInfoToRedisReq.setInductionRecordId(queryPublicInfoDetailComRespDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1119911_1_48466
                        putPublicInfoToRedisReq.setOrganizationId(queryPublicInfoDetailComRespDto.getOrganizationId());//SimpleFieldAssign//sourceId:1119912_1_48466
                        putPublicInfoToRedisReq.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1119910_1_48466
                        putPublicInfoToRedisReq.setPositionRoleCode(queryPublicInfoDetailComRespDto.getPositionRoleCode());//SimpleFieldAssign//sourceId:1119921_1_48466
                        putPublicInfoToRedisReq.setHighestOrgID(queryPublicInfoDetailComRespDto.getHighestOrgID());//SimpleFieldAssign//sourceId:1119920_1_48466
                    }
                    if (implementUnifiedCertificationSignInCheckComRespDto != null) {
                        putPublicInfoToRedisReq.setUserId(implementUnifiedCertificationSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:1119909_1_48466
                    }
                    if (querySpaceDetailComRespDto != null) {
                        putPublicInfoToRedisReq.setSpaceId(querySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:1119914_1_48466
                        putPublicInfoToRedisReq.setSceneId(querySpaceDetailComRespDto.getSubjectionSceneId());//SimpleFieldAssign//sourceId:1119915_1_48466
                        putPublicInfoToRedisReq.setAppId(querySpaceDetailComRespDto.getSubjectionAppId());//SimpleFieldAssign//sourceId:1119916_1_48466
                    }
                    if (generateTokenRes != null) {
                        putPublicInfoToRedisReq.setToken(generateTokenRes.getToken());//SimpleFieldAssign//sourceId:1119918_1_48466
                    }

                    /*M-公共信息存储Redis（特殊方法）[1580]  用于用户前端登录成功后，将登录的公共信息缓存到REDIS中 */
                    Assert.isNull(putPublicInfoToRedisReq.getInductionRecordId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-就职记录ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getOrganizationId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getUserId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-账号不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getOriginalRoleMemberId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-身份人员ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getHighestOrgID(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-最高组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getSpaceId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-空间ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getSceneId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-场景ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getAppId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-联盟应用ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq.getToken(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-token不能为空", false);
                    putPublicInfoToRedisRes = nbUser.putPublicInfoToRedis(putPublicInfoToRedisReq);


                }
            } else {
                //else  48467

//ModelCode: putPublicInfoToRedis
                PutPublicInfoToRedisRespDto putPublicInfoToRedisRes_1 = null;
                if (queryPublicInfoDetailComRespDto != null && implementUnifiedCertificationSignInCheckComRespDto != null && querySpaceDetailComRespDto != null) {
                    PutPublicInfoToRedisReqDto putPublicInfoToRedisReq_1 = new PutPublicInfoToRedisReqDto();
                    if (queryPublicInfoDetailComRespDto != null) {
                        putPublicInfoToRedisReq_1.setInductionRecordId(queryPublicInfoDetailComRespDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1119911_1_48468
                        putPublicInfoToRedisReq_1.setOrganizationId(queryPublicInfoDetailComRespDto.getOrganizationId());//SimpleFieldAssign//sourceId:1119912_1_48468
                        putPublicInfoToRedisReq_1.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1119910_1_48468
                        putPublicInfoToRedisReq_1.setPositionRoleCode(queryPublicInfoDetailComRespDto.getPositionRoleCode());//SimpleFieldAssign//sourceId:1119921_1_48468
                        putPublicInfoToRedisReq_1.setHighestOrgID(queryPublicInfoDetailComRespDto.getHighestOrgID());//SimpleFieldAssign//sourceId:1119920_1_48468
                    }
                    if (implementUnifiedCertificationSignInCheckComRespDto != null) {
                        putPublicInfoToRedisReq_1.setUserId(implementUnifiedCertificationSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:1119909_1_48468
                    }
                    if (querySpaceDetailComRespDto != null) {
                        putPublicInfoToRedisReq_1.setSpaceId(querySpaceDetailComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:1119914_1_48468
                        putPublicInfoToRedisReq_1.setSceneId(querySpaceDetailComRespDto.getSubjectionSceneId());//SimpleFieldAssign//sourceId:1119915_1_48468
                        putPublicInfoToRedisReq_1.setAppId(querySpaceDetailComRespDto.getSubjectionAppId());//SimpleFieldAssign//sourceId:1119916_1_48468
                    }
                    if (generateTokenRes != null) {
                        putPublicInfoToRedisReq_1.setToken(generateTokenRes.getToken());//SimpleFieldAssign//sourceId:1119918_1_48468
                    }

                    /*M-公共信息存储Redis（特殊方法）[1580]  用于用户前端登录成功后，将登录的公共信息缓存到REDIS中 */
                    Assert.isNull(putPublicInfoToRedisReq_1.getInductionRecordId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-就职记录ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getOrganizationId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getUserId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-账号不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getOriginalRoleMemberId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-身份人员ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getHighestOrgID(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-最高组织ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getSpaceId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-空间ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getSceneId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-场景ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getAppId(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-联盟应用ID不能为空", false);
                    Assert.isNull(putPublicInfoToRedisReq_1.getToken(), "D1-执行统一认证登录处理数据(公共)-M-公共信息存储Redis（特殊方法）-token不能为空", false);
                    putPublicInfoToRedisRes_1 = nbUser.putPublicInfoToRedis(putPublicInfoToRedisReq_1);


                }
            }
            AddUsersUnionRespDto addUsersUnionRespDto = null;
            if (queryPublicInfoDetailComRespDto != null) {
                AddUsersUnionReqDto addUsersUnionReqDto = new AddUsersUnionReqDto();
                addUsersUnionReqDto.setUnionAppObjectType("XSZ");//sourceId:1119922_1_48469
                if (queryPublicInfoDetailComRespDto != null) {
                    addUsersUnionReqDto.setOriginalRoleMemberId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1119925_1_48469
                    addUsersUnionReqDto.setUnionAppObjectId(queryPublicInfoDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1119923_1_48469
                    addUsersUnionReqDto.setUnionAppObjectName(queryPublicInfoDetailComRespDto.getIdCardName());//SimpleFieldAssign//sourceId:1119924_1_48469
                }
                if (reqDto != null) {
                    addUsersUnionReqDto.setOpenId(reqDto.getOpenId());//SimpleFieldAssign//sourceId:1433090_1_48469
                }

                /*D1-2新增联盟用户(公共)[1021]   */
                Assert.isNull(addUsersUnionReqDto.getOriginalRoleMemberId(), "D1-执行统一认证登录处理数据(公共)-D1-2新增联盟用户(公共)-身份人员ID不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getUnionAppObjectType(), "D1-执行统一认证登录处理数据(公共)-D1-2新增联盟用户(公共)-联盟应用对象类型不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getUnionAppObjectId(), "D1-执行统一认证登录处理数据(公共)-D1-2新增联盟用户(公共)-联盟应用用户ID不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getUnionAppObjectName(), "D1-执行统一认证登录处理数据(公共)-D1-2新增联盟用户(公共)-联盟应用用户名不能为空", false);
                Assert.isNull(addUsersUnionReqDto.getOpenId(), "D1-执行统一认证登录处理数据(公共)-D1-2新增联盟用户(公共)-开放ID不能为空", false);
                addUsersUnionRespDto = addUsersUnion(addUsersUnionReqDto)/*vcase invoke 同服务,同domain*/;


            }
            boolean bOOLEAN;
            if (implementUnifiedCertificationSignInCheckComRespDto != null) {
                Users users = new Users();
                users.setLastLoginTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1119968_1_48470
                if (implementUnifiedCertificationSignInCheckComRespDto != null) {
                    users.setUserId(implementUnifiedCertificationSignInCheckComRespDto.getUserId());//SimpleFieldAssign//sourceId:1119966_1_48470
                }

                /*1-2-01修改个人账号[46]   */
                Assert.isNull(users.getUserId(), "D1-执行统一认证登录处理数据(公共)-1-2-01修改个人账号-个人账号不能为空", false);
                Assert.isNull(users.getLastLoginTime(), "D1-执行统一认证登录处理数据(公共)-1-2-01修改个人账号-最后登录时间不能为空", false);
                bOOLEAN = mUsersService.updateUser(users)/*vcase invoke 本地 method 方法调用;*/;


            }
        }
        ImplementUnifiedCertificationSignInCheckProcessingDataComRespDto retData = new ImplementUnifiedCertificationSignInCheckProcessingDataComRespDto();
        if (generateTokenRes_1 != null) {
            retData.setToken(generateTokenRes_1.getToken());//SimpleFieldAssign//sourceId:1120309_1
        }


        return retData;
    }

    /**
     * D1-登录V3(公共)[7385]
     * gen by moon at 12/23/2023, 1:25:40 AM
     */
    @Trace(operationName = "D1-登录V3(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementLoginComRespDto implementLoginCom(ImplementLoginComReqDto reqDto) {


        ImplementUnifiedCertificationSignInCheckProcessingDataComRespDto implementUnifiedCertificationSignInCheckProcessingDataComRespDto_1 = null;
//virtualUsage D1获取空间三方鉴权配置信息(公共)  48471
        ObtainSpaceThirdPartyAuthenticationConfInfoComRespDto obtainSpaceThirdPartyAuthenticationConfInfoComRespDto = null;
        ObtainSpaceThirdPartyAuthenticationConfInfoComReqDto obtainSpaceThirdPartyAuthenticationConfInfoComReqDto = new ObtainSpaceThirdPartyAuthenticationConfInfoComReqDto();
        obtainSpaceThirdPartyAuthenticationConfInfoComReqDto.setDnsAddresses(CommonFunctionHelper.getSessionUrl());//ACCESS_ADDRESS//sourceId:1120207_1_48471

        /*D1获取空间三方鉴权配置信息(公共)[7379]   */
        Assert.isNull(obtainSpaceThirdPartyAuthenticationConfInfoComReqDto.getDnsAddresses(), "D1-登录V3(公共)-D1获取空间三方鉴权配置信息(公共)-域名地址不能为空", false);
        obtainSpaceThirdPartyAuthenticationConfInfoComRespDto = obtainSpaceThirdPartyAuthenticationConfInfoCom(obtainSpaceThirdPartyAuthenticationConfInfoComReqDto)/*vcase invoke 同服务,同domain*/;


        if ((!(obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null && obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getEndValue() != null && obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getEndValue().equals("DISABLE")) && reqDto != null && reqDto.getAuthTicket() != null)) {
            //if((D1获取空间三方鉴权配置信息(公共).统一认证接入类型 不等于 不启用 and D1-登录V3(公共).认证中心票证ticket 值不等于空 ))  48472

            QueryItemMatchMultiSelectResultToAnswerListComRespDto queryItemMatchMultiSelectResultToAnswerListComRespDto = null;
            if (obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null) {
                QueryItemMatchMultiSelectResultToAnswerListComReqDto queryItemMatchMultiSelectResultToAnswerListComReqDto = new QueryItemMatchMultiSelectResultToAnswerListComReqDto();
                queryItemMatchMultiSelectResultToAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1120284_1_48487
                queryItemMatchMultiSelectResultToAnswerListComReqDto.setConfItemCode("APPROVE_FIELDS_SHIFT");//CUSTOM_CONVENTION//sourceId:1120285_1_48487
                queryItemMatchMultiSelectResultToAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1120286_1_48487
                if (obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null) {
                    queryItemMatchMultiSelectResultToAnswerListComReqDto.setResultAspObjId(obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getUniqueSpaceId());//SimpleFieldAssign//sourceId:1120283_1_48487
                }

                /*D2-3配置项匹配多选结果转答案(公共)[5196]   */
                Assert.isNull(queryItemMatchMultiSelectResultToAnswerListComReqDto.getResultAspObjId(), "D1-登录V3(公共)-D2-3配置项匹配多选结果转答案(公共)-开通对象ID不能为空", false);
                Assert.isNull(queryItemMatchMultiSelectResultToAnswerListComReqDto.getIsPlatData(), "D1-登录V3(公共)-D2-3配置项匹配多选结果转答案(公共)-是否标准答案不能为空", false);
                queryItemMatchMultiSelectResultToAnswerListComRespDto = confSchemeService.queryItemMatchMultiSelectResultToAnswerListCom(queryItemMatchMultiSelectResultToAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            ObtainAuthAccountInfoComRespDto obtainAuthAccountInfoComRespDto = null;
            if (obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null && queryItemMatchMultiSelectResultToAnswerListComRespDto != null) {
                ObtainAuthAccountInfoComReqDto obtainAuthAccountInfoComReqDto = new ObtainAuthAccountInfoComReqDto();
                if (reqDto != null) {
                    obtainAuthAccountInfoComReqDto.setAuthTicket(reqDto.getAuthTicket());//SimpleFieldAssign//sourceId:1120222_1_48478
                }
                if (obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null) {
                    obtainAuthAccountInfoComReqDto.setAuthCheckTicketUrl(obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getAuthCheckTicketUrl());//SimpleFieldAssign//sourceId:1120223_1_48478
                    obtainAuthAccountInfoComReqDto.setAppCallBackUrl(obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getAppCallBackUrl());//SimpleFieldAssign//sourceId:1120224_1_48478
                }
                if (queryItemMatchMultiSelectResultToAnswerListComRespDto != null) {
                    obtainAuthAccountInfoComReqDto.setUserNameField(queryItemMatchMultiSelectResultToAnswerListComRespDto.getUserNameField());//SimpleFieldAssign//sourceId:1120228_1_48478
                    obtainAuthAccountInfoComReqDto.setRoleMemberCodeField(queryItemMatchMultiSelectResultToAnswerListComRespDto.getRoleMemberCodeField());//SimpleFieldAssign//sourceId:1120229_1_48478
                    obtainAuthAccountInfoComReqDto.setPhoneField(queryItemMatchMultiSelectResultToAnswerListComRespDto.getPhoneField());//SimpleFieldAssign//sourceId:1120230_1_48478
                }

                /*D1-获取统一认证用户信息(公共)[7383]   */
                Assert.isNull(obtainAuthAccountInfoComReqDto.getAuthTicket(), "D1-登录V3(公共)-D1-获取统一认证用户信息(公共)-认证中心票证ticket不能为空", false);
                Assert.isNull(obtainAuthAccountInfoComReqDto.getAuthCheckTicketUrl(), "D1-登录V3(公共)-D1-获取统一认证用户信息(公共)-认证中心验证票据地址不能为空", false);
                Assert.isNull(obtainAuthAccountInfoComReqDto.getAppCallBackUrl(), "D1-登录V3(公共)-D1-获取统一认证用户信息(公共)-应用回调地址不能为空", false);
                Assert.isNull(obtainAuthAccountInfoComReqDto.getRoleMemberCodeField(), "D1-登录V3(公共)-D1-获取统一认证用户信息(公共)-工号的字段名不能为空", false);
                obtainAuthAccountInfoComRespDto = obtainAuthAccountInfoCom(obtainAuthAccountInfoComReqDto)/*vcase invoke 同服务,同domain*/;


            }
            if ((obtainAuthAccountInfoComRespDto != null && obtainAuthAccountInfoComRespDto.getUserName() != null || obtainAuthAccountInfoComRespDto != null && obtainAuthAccountInfoComRespDto.getPhone() != null || obtainAuthAccountInfoComRespDto != null && obtainAuthAccountInfoComRespDto.getRoleMemberCode() != null)) {
                //if((D1-获取统一认证用户信息(公共).用户名 值不等于空  or D1-获取统一认证用户信息(公共).绑定手机 值不等于空  or D1-获取统一认证用户信息(公共).身份人员编号 值不等于空 ))  48481

                ImplementUnifiedCertificationSignInCheckProcessingDataComRespDto implementUnifiedCertificationSignInCheckProcessingDataComRespDto = null;
                if (obtainAuthAccountInfoComRespDto != null && obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null) {
                    ImplementUnifiedCertificationSignInCheckProcessingDataComReqDto implementUnifiedCertificationSignInCheckProcessingDataComReqDto = new ImplementUnifiedCertificationSignInCheckProcessingDataComReqDto();
                    if (obtainAuthAccountInfoComRespDto != null) {
                        implementUnifiedCertificationSignInCheckProcessingDataComReqDto.setRoleMemberCode(obtainAuthAccountInfoComRespDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:1120254_1_48482
//implementUnifiedCertificationSignInCheckProcessingDataComReqDto.setUserName(obtainAuthAccountInfoComRespDto.getUserName());//SimpleFieldAssign//sourceId:1120232_1_48482
                        implementUnifiedCertificationSignInCheckProcessingDataComReqDto.setPhone(obtainAuthAccountInfoComRespDto.getPhone());//SimpleFieldAssign//sourceId:1120233_1_48482
                    }
                    if (obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null) {
                        implementUnifiedCertificationSignInCheckProcessingDataComReqDto.setSpaceId(obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getUniqueSpaceId());//SimpleFieldAssign//sourceId:1120234_1_48482
                    }
                    if (reqDto != null) {
                        implementUnifiedCertificationSignInCheckProcessingDataComReqDto.setOpenId(reqDto.getAuthTicket());//SimpleFieldAssign//sourceId:1433092_1_48482
                    }

                    /*D1-执行统一认证登录处理数据(公共)[7384]   */
                    Assert.isNull(implementUnifiedCertificationSignInCheckProcessingDataComReqDto.getRoleMemberCode(), "D1-登录V3(公共)-D1-执行统一认证登录处理数据(公共)-身份人员编号不能为空", false);
                    Assert.isNull(implementUnifiedCertificationSignInCheckProcessingDataComReqDto.getOpenId(), "D1-登录V3(公共)-D1-执行统一认证登录处理数据(公共)-开放ID不能为空", false);
                    implementUnifiedCertificationSignInCheckProcessingDataComRespDto = implementUnifiedCertificationSignInCheckProcessingDataCom(implementUnifiedCertificationSignInCheckProcessingDataComReqDto)/*vcase invoke 同服务,同domain*/;


                    implementUnifiedCertificationSignInCheckProcessingDataComRespDto_1 = implementUnifiedCertificationSignInCheckProcessingDataComRespDto;
                }
            }
        } else if ((!(obtainSpaceThirdPartyAuthenticationConfInfoComRespDto != null && obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getEndValue() != null && obtainSpaceThirdPartyAuthenticationConfInfoComRespDto.getEndValue().equals("DISABLE")) && reqDto != null && reqDto.getAuthTicket() == null)) {
            //elseif((D1获取空间三方鉴权配置信息(公共).统一认证接入类型 不等于 不启用 and D1-登录V3(公共).认证中心票证ticket 值等于空 ))  48473

//异常结束 48474
            throw new BizException("500", "系统异常，请联系管理员！", false);
        }
        ImplementLoginComRespDto retData = new ImplementLoginComRespDto();
        if (implementUnifiedCertificationSignInCheckProcessingDataComRespDto_1 != null) {
            retData.setToken(implementUnifiedCertificationSignInCheckProcessingDataComRespDto_1.getToken());//SimpleFieldAssign//sourceId:1120311_1
        }


        return retData;
    }

    /**
     * D1批量查询个人资料(公共)[8002]
     * gen by moon at 11/23/2023, 10:36:11 PM
     */
    @Trace(operationName = "D1批量查询个人资料(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryUserInfoComRespDto batchQueryUserInfoCom(BatchQueryUserInfoComReqDto reqDto) {


        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
        if (reqDto != null) {
            batchQueryUserinfoListReq.setUserList(reqDto.getUserInfoList());//list-field-assign//sourceId:1349811_1
        }

        /*1-2-02批量查询个人资料列表[52]   */

        listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


        listUserinfo_1 = listUserinfo;

        BatchQueryUserInfoComRespDto retData = new BatchQueryUserInfoComRespDto();
        retData.setUserInfoList(listUserinfo_1.stream().map(item -> BeanUtil.toBean(item, UserInfoDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1349815_1


        return retData;
    }

    /**
     * D1拼第三方统一认证的登录地址[8175]
     * gen by moon at 12/20/2023, 9:17:42 PM
     */
    @Trace(operationName = "D1拼第三方统一认证的登录地址")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryObtainUnifiedAuthenticationLoginInformationDetailComRespDto queryObtainUnifiedAuthenticationLoginInformationDetailCom(QueryObtainUnifiedAuthenticationLoginInformationDetailComReqDto reqDto) {


        ImplementObtainUnifiedAuthenticationLoginInformationRespDto splicingUnifiedAuthenticationAddressesRes_1 = null;
//步骤0: M1拼第三方统一认证的登录地址（特殊方法） - implementObtainUnifiedAuthenticationLoginInformation
        //ModelCode: splicingUnifiedAuthenticationAddresses
        ImplementObtainUnifiedAuthenticationLoginInformationRespDto splicingUnifiedAuthenticationAddressesRes = null;
        ImplementObtainUnifiedAuthenticationLoginInformationReqDto splicingUnifiedAuthenticationAddressesReq = new ImplementObtainUnifiedAuthenticationLoginInformationReqDto();
        if (reqDto != null) {
            splicingUnifiedAuthenticationAddressesReq.setAuthLoginUrl(reqDto.getAuthLoginUrl());//SimpleFieldAssign//sourceId:1430391_1
            splicingUnifiedAuthenticationAddressesReq.setAppCallBackUrl(reqDto.getAppCallBackUrl());//SimpleFieldAssign//sourceId:1430392_1
        }

        /*M1拼第三方统一认证的登录地址（特殊方法）[8176]   */
//    Assert.isNull(splicingUnifiedAuthenticationAddressesReq.getAuthLoginUrl(),"D1拼第三方统一认证的登录地址-M1拼第三方统一认证的登录地址（特殊方法）-认证中心登录地址不能为空",false);
//Assert.isNull(splicingUnifiedAuthenticationAddressesReq.getAppCallBackUrl(),"D1拼第三方统一认证的登录地址-M1拼第三方统一认证的登录地址（特殊方法）-应用回调地址不能为空",false);
        splicingUnifiedAuthenticationAddressesRes = nbUser.implementObtainUnifiedAuthenticationLoginInformation(splicingUnifiedAuthenticationAddressesReq);


        splicingUnifiedAuthenticationAddressesRes_1 = splicingUnifiedAuthenticationAddressesRes;

        QueryObtainUnifiedAuthenticationLoginInformationDetailComRespDto retData = new QueryObtainUnifiedAuthenticationLoginInformationDetailComRespDto();
        if (splicingUnifiedAuthenticationAddressesRes_1 != null) {
            retData.setSplicingAuthAddresses(splicingUnifiedAuthenticationAddressesRes_1.getSplicingAuthAddresses());//SimpleFieldAssign//sourceId:1430396_1
        }


        return retData;
    }

    /**
     * D1-查询第三方统一认证用户信息详情[8188]
     * gen by moon at 12/23/2023, 1:26:00 AM
     */
    @Trace(operationName = "D1-查询第三方统一认证用户信息详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryAuthAccountInfoDetailRespDto queryAuthAccountInfoDetail(QueryAuthAccountInfoDetailReqDto reqDto) {


        UsersUnion usersUnion_1 = null;
//步骤0: 1-2-03查询联盟用户详情 - queryUsersUnionDetail
        UsersUnion usersUnion = null;
        QueryUsersUnionDetailReq queryUsersUnionDetailReq = new QueryUsersUnionDetailReq();
        if (reqDto != null) {
            queryUsersUnionDetailReq.setOpenId(reqDto.getOpenId());//SimpleFieldAssign//sourceId:1433145_1
        }

        /*1-2-03查询联盟用户详情[157]   */
        Assert.isNull(queryUsersUnionDetailReq.getOpenId(), "D1-查询第三方统一认证用户信息详情-1-2-03查询联盟用户详情-开放ID不能为空", false);
        usersUnion = mUsersUnionService.queryUsersUnionDetail(queryUsersUnionDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        usersUnion_1 = usersUnion;

        QueryAuthAccountInfoDetailRespDto retData = new QueryAuthAccountInfoDetailRespDto();
        if (usersUnion_1 != null) {
            retData.setOriginalRoleMemberId(usersUnion_1.getUnionAppObjectId());//SimpleFieldAssign//sourceId:1433900_1
            retData.setUserId(usersUnion_1.getUserId());//SimpleFieldAssign//sourceId:1433899_1
            retData.setSpaceId(usersUnion_1.getSpaceId());
        }


        return retData;
    }

    /**
     * D1执行异步更新账号(公共)[8477]
     * gen by moon at 2/5/2024, 10:58:06 PM
     */
    @Trace(operationName = "D1执行异步更新账号(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAsynUpdateUserComRespDto implementAsynUpdateUserCom(ImplementAsynUpdateUserComReqDto reqDto) {


        //virtualUsage M1执行【异步开始】  60962
        //ModelCode: asynchronizationStart
        Callable<String> call = new Callable<String>() {

            @Override
            public String call() throws Exception {
                //执行方法
                if ((reqDto != null && reqDto.getComNumField() != null && reqDto != null && reqDto.getComNumField() == 1L)) {
                    //if((D1执行异步更新账号(公共).通用数值字段（整数型） 值不等于空  and D1执行异步更新账号(公共).通用数值字段（整数型） 等于 1))  60959

                    boolean bOOLEAN;
                    Users users = new Users();
                    if (reqDto != null) {
                        users.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1534927_1_60960
                    }

                    /*1-2-01执行账号使用无效密码登录次数自动加一[8425]   */
                    Assert.isNull(users.getUserId(), "D1执行异步更新账号(公共)-1-2-01执行账号使用无效密码登录次数自动加一-个人账号不能为空", false);
                    bOOLEAN = mUsersService.implementUserFailedPasswordAttemptCountAtuoAddOne(users)/*vcase invoke 本地 method 方法调用;*/;


                    if ((reqDto != null && reqDto.getFirstFailedPasswordAttempTime() == null)) {
                        //if(D1执行异步更新账号(公共).首次使用无效密码时间 值等于空 )  60964

                        boolean bOOLEAN_1;
                        Users users_1 = new Users();
                        users_1.setFirstFailedPasswordAttempTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1535007_1_60965
                        if (reqDto != null) {
                            users_1.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1535006_1_60965
                        }

                        /*1-2-01修改个人账号（首次密码无效时间）[46]   */
                        Assert.isNull(users_1.getUserId(), "D1执行异步更新账号(公共)-1-2-01修改个人账号（首次密码无效时间）-个人账号不能为空", false);
                        Assert.isNull(users_1.getFirstFailedPasswordAttempTime(), "D1执行异步更新账号(公共)-1-2-01修改个人账号（首次密码无效时间）-首次使用无效密码时间不能为空", false);
                        bOOLEAN_1 = mUsersService.updateUser(users_1)/*vcase invoke 本地 method 方法调用;*/;


                    }
                } else if ((reqDto != null && reqDto.getComNumField() != null && reqDto != null && reqDto.getComNumField() == 2L)) {
                    //elseif((D1执行异步更新账号(公共).通用数值字段（整数型） 值不等于空  and D1执行异步更新账号(公共).通用数值字段（整数型） 等于 2))  60966

                    boolean bOOLEAN_2;
                    Users users_2 = new Users();
                    users_2.setLastLockoutTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1535394_1_60968
                    users_2.setFailedPasswordAttemptCount(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:1535395_1_60968
                    users_2.setPasswordErrorLockState("TRUE");//sourceId:1535397_1_60968
                    if (reqDto != null) {
                        users_2.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1535393_1_60968
                    }

                    /*1-2-01修改个人账号（锁定账号）[46]   */
                    Assert.isNull(users_2.getUserId(), "D1执行异步更新账号(公共)-1-2-01修改个人账号（锁定账号）-个人账号不能为空", false);
                    Assert.isNull(users_2.getLastLockoutTime(), "D1执行异步更新账号(公共)-1-2-01修改个人账号（锁定账号）-上次被锁定的时间不能为空", false);
                    Assert.isNull(users_2.getFailedPasswordAttemptCount(), "D1执行异步更新账号(公共)-1-2-01修改个人账号（锁定账号）-使用无效密码登录次数不能为空", false);
                    Assert.isNull(users_2.getPasswordErrorLockState(), "D1执行异步更新账号(公共)-1-2-01修改个人账号（锁定账号）-密码错误锁定状态不能为空", false);
                    bOOLEAN_2 = mUsersService.updateUser(users_2)/*vcase invoke 本地 method 方法调用;*/;


                }
//virtualUsage M1执行【异步结束】  60963
                //ModelCode: asynchronizationEnd
                return "";
            }
        };
        CommonFunctionHelper.asynExcute(call);
        ImplementAsynUpdateUserComRespDto retData = new ImplementAsynUpdateUserComRespDto();


        return retData;
    }
    //
}
